This abstract base class defines the accounting interface to external accounting systems.
Definition at line 195 of file account.h.
virtual OSB_LIB::AccountInterface::~AccountInterface | ( | ) | [inline, virtual] |
virtual bool OSB_LIB::AccountInterface::getBalance | ( | const Associate & | associate, | |
const DateTime & | ts, | |||
MoneyList & | dest | |||
) | [pure 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. |
Implemented in OSB_LIB::AccountAr, and OSB_LIB::AccountImp.
Get due days of an associate.
associate | Associate. |
Implemented in OSB_LIB::AccountAr.
virtual long OSB_LIB::AccountInterface::readTransactions | ( | TransactionList & | transactions, | |
const Associate & | associate, | |||
const DateTime & | start, | |||
const DateTime & | end | |||
) | [pure virtual] |
Read transactions of a given associate for a specific time period.
Reads the transactions from the external accounting system into the transactions list container and returns the number of transactions read.
transactions | Transactions. | |
associate | Associate. | |
start | Lower boundary of the time period. | |
end | Upper boundary of the time period. |
Implemented in OSB_LIB::AccountAr, and OSB_LIB::AccountImp.
virtual bool OSB_LIB::AccountInterface::writeInvoice | ( | const Associate & | associate, | |
const Contract & | contract, | |||
const InvoiceInfo & | invInfo | |||
) | [pure virtual] |
Write transaction data for an invoice to external accounting system.
This function can use all public attributes of the associate, contract and invoice passed as parameters to write detailed information about each created invoice to the accounting system.
Implemented in OSB_LIB::AccountAr.
virtual long OSB_LIB::AccountInterface::writeTransactions | ( | const TransactionList & | transactions | ) | [pure virtual] |
Write transactions to external accounting system.
Writes the transactions supplied in the transaction list to the external accounting system. The Transaction type can store only the basic information about each transaction. If more data should be passed to the accounting system, use writeInvoice().
transactions | List of transactions. |
Implemented in OSB_LIB::AccountAr, and OSB_LIB::AccountImp.