The invoice stores all invoice items and amounts. It is the master of all these items.
Definition at line 117 of file invoice.h.
OSB_LIB::InvoiceItem::InvoiceItem | ( | const InvoiceItem & | rhs | ) | [private] |
Forbidden copy contructor.
OSB_LIB::InvoiceItem::InvoiceItem | ( | const Section & | section | ) | [inline] |
virtual OSB_LIB::InvoiceItem::~InvoiceItem | ( | ) | [inline, virtual] |
InvoiceItem& OSB_LIB::InvoiceItem::operator= | ( | const InvoiceItem & | rhs | ) | [private] |
Forbidden copy contructor.
const Section& OSB_LIB::InvoiceItem::section | ( | ) | [inline] |
void OSB_LIB::InvoiceItem::setNumber | ( | int | n | ) | [inline] |
Function to set a number to an invoice item.
n | number to set. |
Definition at line 158 of file invoice.h.
References number_.
Referenced by OSB_LIB::Invoice::setNumber().
virtual void OSB_LIB::InvoiceItem::writeXml | ( | BillingXmlBase & | bXml | ) | const [pure 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); }
bXml | Xml writer to use. |
Implemented in OSB_LIB::UsageItemBase, OSB_LIB::UsagerecordItem, OSB_LIB::SumCdr01Item, OSB_LIB::SubsItem, OSB_LIB::OnetimeChargeItem, OSB_LIB::TotalItem, OSB_LIB::AssociateInfo, OSB_LIB::SummaryChargesInfo, and OSB_LIB::InvoiceInfoItem.
int OSB_LIB::InvoiceItem::number_ [private] |
Reproducible number (in the order in which invoice items are created).
Definition at line 174 of file invoice.h.
Referenced by setNumber().
Section OSB_LIB::InvoiceItem::section_ [protected] |