|
AppCore
|
#include <CashPriceRoundingModule.h>


Classes | |
| class | DataClass |
Public Types | |
| enum | PrintedTicketSection { OwnerSection, SingleFellowTravellerSection, RegionalDiscountSection, SummarySection } |
Public Member Functions | |
| CashPriceRoundingModule (ETicketIssueLogicDataStorage *dataStorage, std::string moduleName=CASH_PRICE_ROUNDING_MODULE_NAME) | |
| virtual | ~CashPriceRoundingModule () |
| virtual EIssueLogicDefines::ReturnValues | Init () |
| init module input data ( for example other module ) More... | |
| void | Clear () |
| bool | IsCashPriceRoundingPossible () const |
| bool | TryToRoundCashPrice (long &price) const |
| bool | SetPrintedTicketSection (const PrintedTicketSection ticketSection, EM::Common::EDataCol *dataCollection, const long summaryPrice, const unsigned char currencyID) |
| SetPrintedTicketSection - method sets individual printed ticket sections, which are filled when we are preparing printed ticket data. More... | |
| bool | ProcessAndFillPrintedTicketTemplate () |
| ProcessAndFillPrintedTicketTemplate - after printed ticked has filled all sections, we need to process previously prepared sections data. More... | |
| bool | CreateStatisticalTicket (EM::Strojcek::StatistikaStrojcek::ECestovnyListok *&statisticTicket) |
| CreateStatisticalTicket - after printing, we need to create statistical ticket from previously processed printed ticket data. More... | |
Public Member Functions inherited from EM::TicketIssueLogic::ETicketIssueModule | |
| ETicketIssueModule (const std::string &name, EIssueLogicDefines::ModuleFamily moduleFamily) | |
| virtual | ~ETicketIssueModule () |
| bool | GetName (std::string &moduleName) |
| unique module identificator More... | |
| bool | GetModuleFamily (EIssueLogicDefines::ModuleFamily &moduleFamily) |
| return by reference module family More... | |
| CashPriceRoundingModule::CashPriceRoundingModule | ( | ETicketIssueLogicDataStorage * | dataStorage, |
| std::string | moduleName = CASH_PRICE_ROUNDING_MODULE_NAME |
||
| ) |
|
virtual |
| void CashPriceRoundingModule::Clear | ( | ) |
| bool CashPriceRoundingModule::CreateStatisticalTicket | ( | EM::Strojcek::StatistikaStrojcek::ECestovnyListok *& | statisticTicket | ) |
CreateStatisticalTicket - after printing, we need to create statistical ticket from previously processed printed ticket data.
| statisticTicket | - statistical ticket which will be created |

|
virtual |
init module input data ( for example other module )
Init
Reimplemented from EM::TicketIssueLogic::ETicketIssueModule.
| bool CashPriceRoundingModule::IsCashPriceRoundingPossible | ( | ) | const |

| bool CashPriceRoundingModule::ProcessAndFillPrintedTicketTemplate | ( | ) |
ProcessAndFillPrintedTicketTemplate - after printed ticked has filled all sections, we need to process previously prepared sections data.

| bool CashPriceRoundingModule::SetPrintedTicketSection | ( | const PrintedTicketSection | ticketSection, |
| EM::Common::EDataCol * | dataCollection, | ||
| const long | summaryPrice, | ||
| const unsigned char | currencyID | ||
| ) |
SetPrintedTicketSection - method sets individual printed ticket sections, which are filled when we are preparing printed ticket data.
| ticketSection | - processed ticket section |
| dataCollection | - data collection which belongs to ticket section |
| summaryPrice | - printed ticket section summary price |
| currencyID | - printed ticket section currency ID |

| bool CashPriceRoundingModule::TryToRoundCashPrice | ( | long & | price | ) | const |


1.8.8