V
V
Viktor Potapov2015-12-25 12:07:05
Java
Viktor Potapov, 2015-12-25 12:07:05

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("Закрыли чек");

The problem is that VAT is not printed on the check, although the dimensions are filled in the printer and I indicate the number when selling.
Return
FiscalPrinter printer = new FiscalPrinter();
        printer.open("PIRIT");
        printer.claim(1);
        printer.setFiscalReceiptType(FPTR_RT_REFUND); 
        printer.beginFiscalReceipt(true);
        printer.printRecRefund("Тестовый возврат", 1, 2);
        printer.printRecVoid("Закрыли чек");

The return doesn't work at all. I get error value of station. Those. the printer is in the wrong state.
printRecIntemRefund operations are not supported by the driver.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question