fixing sendOrder script
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package com.unicenta.pos.ticket;
|
package com.unicenta.pos.ticket;
|
||||||
|
|
||||||
|
import com.google.gson.Gson;
|
||||||
import com.unicenta.basic.BasicException;
|
import com.unicenta.basic.BasicException;
|
||||||
import com.unicenta.data.loader.DataRead;
|
import com.unicenta.data.loader.DataRead;
|
||||||
import com.unicenta.data.loader.DataWrite;
|
import com.unicenta.data.loader.DataWrite;
|
||||||
@@ -40,6 +41,12 @@ public class TicketLineInfo implements SerializableWrite, SerializableRead, Seri
|
|||||||
private String m_sTicket;
|
private String m_sTicket;
|
||||||
private int m_iLine;
|
private int m_iLine;
|
||||||
private double multiply;
|
private double multiply;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new Gson().toJson(this);
|
||||||
|
}
|
||||||
|
|
||||||
private double price;
|
private double price;
|
||||||
private TaxInfo tax;
|
private TaxInfo tax;
|
||||||
private Properties attributes;
|
private Properties attributes;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ private boolean printedP6 = false;
|
|||||||
for(int i= 0; i < ticket.getLinesCount(); i++){
|
for(int i= 0; i < ticket.getLinesCount(); i++){
|
||||||
line = ticket.getLine(i);
|
line = ticket.getLine(i);
|
||||||
|
|
||||||
if (line.getProperty("product.printer")!=null) {
|
if (line.getProperty("product.printer")!=null && line.getProperty("ticket.updated")!=null) {
|
||||||
|
|
||||||
if (line.getProperty("product.printer").equals("1")) {
|
if (line.getProperty("product.printer").equals("1")) {
|
||||||
if((printedP1 == false) && line.getProperty("ticket.updated").equals("true")) {
|
if((printedP1 == false) && line.getProperty("ticket.updated").equals("true")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user