Provides a list of applicable taxes per taxkey-triplett and the tax version matching a tax id and reference date.
Definition at line 120 of file appltaxes.h.
OSB_LIB::ApplicableTaxes::ApplicableTaxes | ( | const ApplicableTaxes & | ) | [private] |
Prevent copying: not implemented.
OSB_LIB::ApplicableTaxes::ApplicableTaxes | ( | ) | [inline] |
Find a tax version valid at a specific date.
id | Id of the tax to find. | |
dt | Date to search for. |
Definition at line 173 of file appltaxes.h.
References findTax().
Find a tax.
vsId | Id of the tax version to find. |
Referenced by findTax().
const TaxIdList* OSB_LIB::ApplicableTaxes::findTaxIdList | ( | const TaxkeyTriplet & | tkt | ) | const |
Get the taxes for a taxkey triplet.
tkt | Taxkey triplet to search. |
Get a tax version valid at a specific date.
id | Id of the tax to find. | |
dt | Date to search for. |
OsbException | if there is no valid version for dt. |
Definition at line 184 of file appltaxes.h.
References getTax().
Get a tax.
vsId | Id of the tax version to find. |
OsbException | if the tax for vsId is not found. |
Referenced by getTax().
const TaxIdList& OSB_LIB::ApplicableTaxes::getTaxIdList | ( | const TaxkeyTriplet & | tkt | ) | const |
Get the taxes for a taxkey triplet.
tkt | Taxkey triplet to search. |
OsbException | if no matching list is found. |
void OSB_LIB::ApplicableTaxes::initialise | ( | const OSB_DB::Session & | session | ) |
Load all tax data and build internal lists.
ApplicableTaxes& OSB_LIB::ApplicableTaxes::operator= | ( | const ApplicableTaxes & | ) | [private] |
Prevent assignment: not implemented.
void OSB_LIB::ApplicableTaxes::taxableAmount | ( | MoneyList & | , | |
const BaseAmount & | , | |||
const TaxIdList & | ||||
) | const |
Returns the net amount to be taxed by currency.
long OSB_LIB::ApplicableTaxes::taxIdListsSize | ( | ) | [inline] |
long OSB_LIB::ApplicableTaxes::taxkeyTripletsSize | ( | ) | [inline] |
long OSB_LIB::ApplicableTaxes::taxListSize | ( | ) | [inline] |
void OSB_LIB::ApplicableTaxes::writeTaxIdLists | ( | std::ostream & | ) | const |
void OSB_LIB::ApplicableTaxes::writeTaxkeyTriplets | ( | std::ostream & | ) | const |
void OSB_LIB::ApplicableTaxes::writeTaxList | ( | std::ostream & | ) | const |
TaxIdLists is a list of TaxId lists.
Definition at line 213 of file appltaxes.h.
Referenced by taxIdListsSize().
The "exploded" taxkey-triplets list. Each triplet points to a tax-id-list.
Definition at line 219 of file appltaxes.h.
Referenced by taxkeyTripletsSize().
TaxList OSB_LIB::ApplicableTaxes::taxList_ [private] |