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;
}
Aggregations