use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarFiscalPrinter method cmdChangeIBNumber.
public FiscalPacket cmdChangeIBNumber(String ibNumber) {
FiscalPacket cmd = createFiscalPacket(CMD_CHANGE_IB_NUMBER);
int i = 1;
cmd.setText(i++, ibNumber, false);
return cmd;
}
use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarFiscalPrinter method cmdSetCustomerData.
public FiscalPacket cmdSetCustomerData(String name, String customerDocNumber, String ivaResponsibility, String docType, String location) {
FiscalPacket cmd = createFiscalPacket(CMD_SET_CUSTOMER_DATA);
int i = 1;
cmd.setText(i++, name, 50, true);
cmd.setText(i++, formatDocNumber(docType, customerDocNumber), true);
cmd.setText(i++, ivaResponsibility, false);
cmd.setText(i++, docType, true);
cmd.setText(i++, location, 50, true);
return cmd;
}
use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarFiscalPrinter method cmdChangeIVAResponsibility.
public FiscalPacket cmdChangeIVAResponsibility(String ivaResponsability) {
FiscalPacket cmd = createFiscalPacket(CMD_CHANGE_IVA_RESPONSIBILITY);
int i = 1;
cmd.setText(i++, ivaResponsability, false);
return cmd;
}
use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarFiscalPrinter method cmdBarCode.
public FiscalPacket cmdBarCode(Integer codeType, String data, boolean printNumbers) {
FiscalPacket cmd = createFiscalPacket(CMD_SET_BAR_CODE);
int i = 1;
cmd.setNumber(i++, codeType, false);
cmd.setText(i++, data, false);
cmd.setBoolean(i++, printNumbers, "N", "x", false);
cmd.setText(i++, "x", false);
return cmd;
}
use of ar.com.ergio.print.fiscal.FiscalPacket in project lar_361 by comitsrl.
the class HasarFiscalPrinter method cmdPrintLineItem.
// Cuspide Computacion: metodo que permite especificar la longitud máxima de la descripcion, para los modelos que lo requieran.
protected FiscalPacket cmdPrintLineItem(String description, BigDecimal quantity, BigDecimal price, BigDecimal ivaPercent, boolean substract, BigDecimal internalTaxes, boolean basePrice, Integer display, int descMaxLength) {
FiscalPacket cmd = createFiscalPacket(CMD_PRINT_LINE_ITEM);
int i = 1;
cmd.setText(i++, description, descMaxLength, false);
cmd.setQuantity(i++, quantity, false);
cmd.setAmount(i++, price, false);
if (ivaPercent == null)
cmd.setText(i++, "**.**", false);
else
cmd.setNumber(i++, ivaPercent, 2, 2, false);
cmd.setBoolean(i++, substract, "m", "M", false);
cmd.setNumber(i++, internalTaxes, 6, 8, false);
cmd.setNumber(i++, display, true);
cmd.setBoolean(i++, basePrice, "x", "T", false);
return cmd;
}
Aggregations