fixing sendOrder script

This commit is contained in:
2023-06-13 15:48:20 +01:00
parent 184c53d4ac
commit 51b833e0cd
2 changed files with 8 additions and 1 deletions
@@ -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")) {