I solved it, just needed to set ine as updated: // MARK THE NEW TICKET LINE AS UPDATED newLine.setProperty("ticket.updated", "true"); // Insert the updated line into the ticket ticket.insertLine(ticket.getLinesCount(), newLine); Thanks for your time!
I solved it, just needed to set ine as updated: // MARK THE NEW TICKET LINE AS UPDATED newLine.setProperty("ticket.updated", "true"); // Insert the updated line into the ticket ticket.insertLine(ticket.getLinesCount(), newLine);
Hi M Tariq Aziz, Thank you for your time. However the script returns this error: com.unicenta.pos.scripting.ScriptException: Sourced file: inline evaluation of: ``import javax.swing.JOptionPane; index = sales.getSelectedIndex(); // Remove ex . . . '' : Typed variable declaration : Class: Session not found in namespace bsh.EvalError: Sourced file: inline evaluation of: ``import javax.swing.JOptionPane; index = sales.getSelectedIndex(); // Remove ex . . . '' : Typed variable declaration : Class: Session...
I have a custom delivery info button (in restaurant mode) which adds delivery name, address, number, and time - it works ok except when the user tries to delete the delivery ticketline. In that case, it throws an "already sent to remote printer" error (even though it's not been printed or even attempted). Similarily, if the delivery product line is added first, before normal products are added to the ticket, it doesn't allow remote printing, but if it's added last, it's fine. I've attached the script...