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