This class is derived from AccountInterface class which is an abstract base class.
Definition at line 55 of file accountar.h.
OSB_LIB::AccountAr::AccountAr | ( | OSB_DB::Session * | s | ) | [inline] |
bool OSB_LIB::AccountAr::getBalance | ( | const Associate & | associate, | |
const DateTime & | ts, | |||
MoneyList & | dest | |||
) | [virtual] |
Get the balance for an associate at a given date.
associate | Associate for whom to get the balance. | |
ts | Date and time of the balance, transactions at ts are not included. | |
dest | List of (amount, currency) to populate. It is cleared inside the function. |
Implements OSB_LIB::AccountInterface.
Get due days of an associate.
associate | Associate. |
Implements OSB_LIB::AccountInterface.
long OSB_LIB::AccountAr::readTransactions | ( | TransactionList & | transactions, | |
const Associate & | associate, | |||
const DateTime & | start, | |||
const DateTime & | end | |||
) | [virtual] |
Read transactions from a period.
This virtual function will get a list of particular associate's payment transactions from a period.
transactions | Transaction list to be populated. | |
associate | Associate. | |
start | Last bill date and time | |
end | This bill date and time. |
Implements OSB_LIB::AccountInterface.
virtual bool OSB_LIB::AccountAr::writeInvoice | ( | const Associate & | associate, | |
const Contract & | contract, | |||
const InvoiceInfo & | invInfo | |||
) | [virtual] |
Write invoice to external accounting system.
This function can use all public attributes of the associate, contract and invoice info passed as parameters to write detailed information about each created invoice to the accounting system.
Implements OSB_LIB::AccountInterface.
virtual long OSB_LIB::AccountAr::writeTransactions | ( | const TransactionList & | transactions | ) | [virtual] |
Write the transactions to AR.
The AR system does neither support something like a transaction list nor is the current balance of an account maintained in the database: the function returns immediately without effect, nothing is actually written to the AR system.
transactions | Transaction list. |
Implements OSB_LIB::AccountInterface.
OSB_DB::Session* OSB_LIB::AccountAr::session_ [private] |