For restaurants, additional information about an item can be set and sent to kitchen. This example shows how to set a button on sales screen to input item note.
Maintenance > Resources
In Ticket.Buttons add the below line:
<button key="button.receiptnote" name="button.receiptnote" code="Script.ItemNote"/>
Create a resource Script.ItemNote and add the below lines
com.posics.pos.mant.JInputDialog jid = new com.posics.pos.mant.JInputDialog(); jid.setLabel("Please enter item note"); Object[] options = { "OK", "Cancel" }; int result = javax.swing.JOptionPane.showOptionDialog(null, jid, "Item Note", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, null); if (result == JOptionPane.OK_OPTION) { ticket.getLine(ticket.getLinesCount() - 1).setProperty("product.name", ticket.getLine(ticket.getLinesCount() - 1).getProductName() + " - " + jid.getValue()); } Save & restart