posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, "" + data.getCOMPLETENAME() + LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, "" + data.getDOCUMENTTYPE() + " : " + data.getDOCUMENTNUMBER() + LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, "" + data.getADDRESS() + LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, LF);
List<ClsPaymentEBillingDetail> detailList = data.getDetail().getClsPaymentEBillingDetail();
"Item ",
"Descripción",
"Cant. ",
"Precio");
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, ESC + "|uC"
+ formatedLine
+ LF);
for (ClsPaymentEBillingDetail singleLine : detailList) {
formatedLine
= String.
format("%-5s%-24s%-4s%-8s",
singleLine.getIProductId(),
singleLine.getVDescription(),
singleLine.getFQuantity(),
singleLine.getFPriceTotal());
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, " "
+ formatedLine
+ LF);
}
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, ESC + "|rA"
+ String.
format("%-9s%-8s",
"Subtotal : ", data.
getSUBTOTAL() + " ")
+ LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, ESC + "|rA"
+ String.
format("%-9s%-8s",
"I.G.V. : ", data.
getIGV() + " ")
+ LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, ESC + "|rA" + ESC + "|bC"
+ String.
format("%-9s%-8s",
"Total : ", data.
getTOTAL() + " ")
+ LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, "Autorizado mediante resolución Nro:" + LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, "0340050006039/SUNAT" + LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, "Representación impresa del comprobante" + LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, "de venta electrónico, para consultar el" + LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, "documento ingrese a :" + ESC + "|bC" + "www.aap.org.pe" + LF);
posPrinter.printNormal(POSPrinterConst.PTR_S_RECEIPT, LF);