#include <DeductionStateLogic.h>
|
| | DeductionStateLogic (ApplicationState *stateLogicOwner, const StorageList &storageList, BusinessLogicManager *businessLogicManager) |
| |
| virtual | ~DeductionStateLogic () |
| |
| bool | CloseAndPrintDeduction (const bool preFinal, QString &errorMessage, bool &printFailed, bool deductionPrintEnabled) |
| | CloseAndPrintDeduction - tries to close deduction, print final ticket, send events to dispatching and store items in AppOperatingData. More...
|
| |
| bool | PrintFinalTicket (bool preFinal) |
| | PrintFinalTicket - prints final deduction ticket. More...
|
| |
| void | PrintInitialTicket () |
| | PrintInitialTicket - prints initial deduction ticket. More...
|
| |
| bool | OpenDeduction () |
| | OpenDeduction - opens deduction, creates statistic record and print initial ticket. More...
|
| |
| | StateLogic (State *stateLogicOwner, const StorageList &storageList, ApplicationStateDefines::StateLogicType stateLogicType, BusinessLogicManager *businessLogicManager) |
| |
| virtual | ~StateLogic () |
| |
| ApplicationStateDefines::StateLogicType | GetStateLogicType () |
| |
| DeductionStateLogic::~DeductionStateLogic |
( |
| ) |
|
|
virtual |
| bool DeductionStateLogic::CloseAndPrintDeduction |
( |
const bool |
preFinal, |
|
|
QString & |
errorMessage, |
|
|
bool & |
printFailed, |
|
|
bool |
deductionPrintEnabled |
|
) |
| |
CloseAndPrintDeduction - tries to close deduction, print final ticket, send events to dispatching and store items in AppOperatingData.
- Parameters
-
| preFinal | - whether printed ticket is pre-final or final |
| errorMessage | - error message filled only when result is false |
| printFailed | - false, if final ticket printing failed, true otherwise |
| deductionPrintEnabled | - if true, try to print final ticket, otherwise final ticket won't be printed |
- Returns
- true if successful, false otherwise
| bool DeductionStateLogic::OpenDeduction |
( |
| ) |
|
OpenDeduction - opens deduction, creates statistic record and print initial ticket.
- Returns
- true if deduction was opened successfully
| bool DeductionStateLogic::PrintFinalTicket |
( |
bool |
preFinal | ) |
|
PrintFinalTicket - prints final deduction ticket.
- Parameters
-
| preFinal | - whether printed ticket is pre-final or final |
- Returns
- true if ticket was printed successfully, false otherwise
| void DeductionStateLogic::PrintInitialTicket |
( |
| ) |
|
PrintInitialTicket - prints initial deduction ticket.
The documentation for this class was generated from the following files: