use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarFiscalPrinter method cmdSetGeneralConfiguration.
public FiscalPacket cmdSetGeneralConfiguration(boolean printConfigReport, boolean loadDefaultData, BigDecimal finalConsumerLimit, BigDecimal ticketInvoiceLimit, BigDecimal ivaNonInscript, Integer copies, Boolean printChange, Boolean printLabels, String ticketCutType, Boolean printFramework, Boolean reprintDocuments, String balanceText, Boolean paperSound, String paperSize) {
FiscalPacket cmd = createFiscalPacket(CMD_SET_GENERAL_CONFIGURATION);
int i = 1;
cmd.setBoolean(i++, printConfigReport, "P", "x", false);
cmd.setBoolean(i++, loadDefaultData, "P", "x", false);
cmd.setNumber(i++, finalConsumerLimit, 9, 2, true);
cmd.setNumber(i++, ticketInvoiceLimit, 9, 2, true);
cmd.setNumber(i++, ivaNonInscript, 2, 2, true);
cmd.setNumber(i++, copies, true);
cmd.setBoolean(i++, printChange, "P", "x", true);
cmd.setBoolean(i++, printLabels, "P", "x", true);
cmd.setText(i++, ticketCutType, true);
cmd.setBoolean(i++, printFramework, "P", "x", true);
cmd.setBoolean(i++, reprintDocuments, "P", "x", true);
cmd.setText(i++, balanceText, 80, true);
cmd.setBoolean(i++, paperSound, "P", "x", true);
cmd.setText(i++, paperSize, true);
return cmd;
}
use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarFiscalPrinter method cmdGetHeaderTrailer.
public FiscalPacket cmdGetHeaderTrailer(int line) {
FiscalPacket cmd = createFiscalPacket(CMD_GET_HEADER_TRAILER);
int i = 1;
cmd.setNumber(i++, line, false);
return cmd;
}
use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarFiscalPrinter method cmdDailyClose.
public FiscalPacket cmdDailyClose(String docType) {
FiscalPacket cmd = createFiscalPacket(CMD_DAILY_CLOSE);
int i = 1;
cmd.setText(i++, docType, false);
return cmd;
}
use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarPrinterP715F method cmdSetCustomerData.
public FiscalPacket cmdSetCustomerData(String name, String customerDocNumber, String ivaResponsibility, String docType, String location) {
FiscalPacket cmd = super.cmdSetCustomerData(name, customerDocNumber, ivaResponsibility, docType, location);
cmd.setText(5, location, 40, true);
return cmd;
}
Aggregations