#include <DeductionBusinessLogic.h>
| DeductionBusinessLogic::DeductionBusinessLogic |
( |
| ) |
|
| DeductionBusinessLogic::~DeductionBusinessLogic |
( |
| ) |
|
|
virtual |
| void DeductionBusinessLogic::FillFinalTicket |
( |
EM::PrinterTemplate::EPrinterTemplate * |
ticketTemplate, |
|
|
bool |
preFinalTicket |
|
) |
| |
FillFinalTicket - fills final ticket template.
- Parameters
-
| ticketTemplate | - template to be filled |
| preFinalTicket | - whether ticket is pre-final (some fields are printed only on final ticket, not on pre-final) |
| vehicleIdentificationNumber | - value written to vehicle_info template field |
| void DeductionBusinessLogic::FillInitialTicket |
( |
EM::PrinterTemplate::EPrinterTemplate * |
ticketTemplate | ) |
|
FillInitialTicket - fills initial ticket template (ticket header, driver and deduction details, ...)
- Parameters
-
| ticketTemplate | - template to be filled |
| bool DeductionBusinessLogic::GetCurrentDeductionNumber |
( |
uint32_t & |
currentDeductionNumber | ) |
|
Gets current deduction number from 'deduction number record'/'ECisloOdpoctu' from statistic interface 'ERootStatistika'.
- Parameters
-
- Returns
| bool DeductionBusinessLogic::GetCurrentDeductionNumberFromConfig |
( |
uint32_t & |
currentDeductionNumber | ) |
|
Gets number of the current deduction from statistics XML file.
- Parameters
-
| currentDeductionNumber | output parameter where the retrieved value is stored |
- Returns
- true on success, false otherwise
| bool DeductionBusinessLogic::GetLastOpenDeductionNumberFromConfig |
( |
uint32_t & |
lastOpenDeductionNumber | ) |
|
Gets number of latest open deduction. If a deduction is open, this number identifies the current deduction.
- Parameters
-
| lastOpenDeductionNumber | output parameter where the retrieved value is stored |
- Returns
- true on success, false otherwise
| bool DeductionBusinessLogic::IsNewMonth |
( |
| ) |
|
| bool DeductionBusinessLogic::SaveCancelationTicketsBeforeDeductionClose |
( |
| ) |
|
SaveCancelationTicketsBeforeDeductionClose - iterates over all storno tickets in deduction and stores information about them (ticket number, price) in dataclass member.
- Returns
- true if successful, false otherwise (error reading from statistics)
The documentation for this class was generated from the following files: