OSB_LIB::TaxAmount Class Reference

Collaboration diagram for OSB_LIB::TaxAmount:

Collaboration graph
[legend]
List of all members.

Detailed Description

Instances of TaxAmount hold taxes for one tax.

Definition at line 52 of file amount.h.

Public Member Functions

Read access function.

Private Attributes


Constructor & Destructor Documentation

OSB_LIB::TaxAmount::TaxAmount ( const TaxTraits tt,
const MoneyList pt,
const Money td 
)

c'tor.

Parameters:
tt Tax trait to use.
pt Tax amount: it can have more than one amount with different currency.
For example, absolute tax currency come from taxtraits and percentage tax currency come from the taxable amount.
td Taxable amount (net amount on which tax was calculated).


Member Function Documentation

TaxAmount& OSB_LIB::TaxAmount::operator+= ( const TaxAmount  ) 

void OSB_LIB::TaxAmount::preciseTax ( MoneyList ml  )  const [inline]

Returns precise tax amount by currency.

Definition at line 79 of file amount.h.

References preciseTax_.

void OSB_LIB::TaxAmount::tax ( MoneyList ml  )  const [inline]

Returns rounded tax amount by currency.

Definition at line 81 of file amount.h.

References tax_.

void OSB_LIB::TaxAmount::taxed ( MoneyList ml  )  const [inline]

Returns taxable amount.

Definition at line 83 of file amount.h.

References taxed_.

TaxIdVs OSB_LIB::TaxAmount::taxIdVs (  )  const [inline]

Returns tax traits id.

Definition at line 75 of file amount.h.

References OSB_LIB::TaxTraits::taxIdVs(), and traits_.

TaxTraits OSB_LIB::TaxAmount::traits (  )  const [inline]

Returns tax traits.

Definition at line 77 of file amount.h.

References traits_.


Member Data Documentation

MoneyList OSB_LIB::TaxAmount::preciseTax_ [private]

Tax as calculated.

Definition at line 91 of file amount.h.

Referenced by preciseTax().

MoneyList OSB_LIB::TaxAmount::tax_ [private]

Rounded tax.

Definition at line 93 of file amount.h.

Referenced by tax().

MoneyList OSB_LIB::TaxAmount::taxed_ [private]

Taxable amount (net amount on which tax was calculated).

NOTE: When adding 2 tax together the currency might be different.

Definition at line 97 of file amount.h.

Referenced by taxed().

TaxTraits OSB_LIB::TaxAmount::traits_ [private]

Tax traits.

Definition at line 89 of file amount.h.

Referenced by taxIdVs(), and traits().


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:09:21 2006 for OSB Library by  doxygen 1.4.7