OSB_LIB::TotalItem Class Reference

Inheritance diagram for OSB_LIB::TotalItem:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::TotalItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class TotalItem.

Every total item contains a Subtotal for a particular section, as defined by the invoice item. Also a member - volume, which may hold the total of any other object. Eg. A total of the call duration in seconds. We can have a TotalItem with only the SubTotal.

Definition at line 1006 of file invoice.h.

Public Member Functions

Public Attributes


Constructor & Destructor Documentation

OSB_LIB::TotalItem::TotalItem ( const Section section,
const Decimal vol,
const Unit::Oid uId 
) [inline]

Definition at line 1008 of file invoice.h.


Member Function Documentation

virtual void OSB_LIB::TotalItem::writeXml ( BillingXmlBase bXml  )  const [inline, virtual]

Function to call the appropriate xml writer for each specific invoice item.

This function is call by BillingXmlBase::writeInvoice when it browses through all invoice item and call billingXml funtion for each of them.

Below is the sample code on how each invoice item writeXml call it's xml writer function.

         virtual void UsagerecordItem::writeXml(BillingXmlBase& bXml) const
         {
             dynamic_cast<BillingXml&>(bXml).writeUsagerecordItem(*this);
         }

Parameters:
bXml Xml writer to use.

Implements OSB_LIB::InvoiceItem.

Definition at line 1014 of file invoice.h.


Member Data Documentation

Subtotal OSB_LIB::TotalItem::amount_

Definition at line 1021 of file invoice.h.

Referenced by OSB_LIB::Invoice::newTotalItem().

std::string OSB_LIB::TotalItem::remark_

Definition at line 1025 of file invoice.h.

Unit::Oid OSB_LIB::TotalItem::unitId_

Definition at line 1024 of file invoice.h.

Decimal OSB_LIB::TotalItem::volume_

Definition at line 1023 of file invoice.h.


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