Answer the question
In order to leave comments, you need to log in
How to properly print sales/return receipts in JavaPOS?
At the moment I am trying to get the java module to work, which works with the PIRIT K fiscal registrar.
The work is done through javaPOS.
Current issues:
Sale.
FiscalPrinter printer = new FiscalPrinter();
printer.open("PIRIT");
printer.claim(1);
printer.beginFiscalReceipt(true);
printer.printRecItem(premadeString("Тестовый товар"), 2, 1 * 1000, 2, 1, premadeString("Тестовый"));
printer.printRecTotal(2, 100, "0");
printer.printRecVoid("Закрыли чек");
FiscalPrinter printer = new FiscalPrinter();
printer.open("PIRIT");
printer.claim(1);
printer.setFiscalReceiptType(FPTR_RT_REFUND);
printer.beginFiscalReceipt(true);
printer.printRecRefund("Тестовый возврат", 1, 2);
printer.printRecVoid("Закрыли чек");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question