View Categories

Automatic Billing On Events

< 1 min read

This article shows how to set automatic billing on certain events, like on selecting a specific item, or when the total amount exceeds certain limit. This method generates a cash bill.


Administrator Menu > Maintenance > Resources
Enable ticket.change in Ticket.Buttons. Add event.change in resources and copy paste below code. Below code checks product name “ORANGE” for quick billing.

int i = ticket.getLinesCount();
if(ticket.getLine(i-1).printName().equals("ORANGE"))
{
 sales.payCash();
}

Save

0 Comments

Leave a Reply

Arrow-up