Search in sources :

Example 1 with FiscalCloseAction

use of ar.com.ergio.print.fiscal.action.FiscalCloseAction in project lar_361 by comitsrl.

the class FiscalPrinterClosing method doIt.

@Override
protected String doIt() throws Exception {
    String msg = String.format("CloseType=%s FiscalPrinter=%d", closeType, lar_Fiscal_Printer_ID);
    log.info(msg);
    try {
        final FiscalDocumentPrint fdp = new FiscalDocumentPrint(lar_Fiscal_Printer_ID);
        fdp.addDocumentPrintListener(infoFiscalPrinter);
        fdp.setPrinterEventListener(infoFiscalPrinter);
        infoFiscalPrinter.setFiscalDocumentPrint(fdp);
        currentAction = new FiscalCloseAction(null, closeType, lar_Fiscal_Printer_ID);
        executeAction();
    } catch (Exception e) {
        log.log(Level.SEVERE, e.getLocalizedMessage(), e);
    }
    return resultMsg;
}
Also used : FiscalDocumentPrint(ar.com.ergio.model.FiscalDocumentPrint) FiscalCloseAction(ar.com.ergio.print.fiscal.action.FiscalCloseAction)

Aggregations

FiscalDocumentPrint (ar.com.ergio.model.FiscalDocumentPrint)1 FiscalCloseAction (ar.com.ergio.print.fiscal.action.FiscalCloseAction)1