for(int i= 0; i < ticket.getLinesCount(); i++)
{
line = ticket.getLine(i);
if(ticket.printId().equals("") && (line.getProperty("sendstatus").equals("Yes") || line.getProperty("sendstatus").equals("Cancel")))
{
javax.swing.JOptionPane.showMessageDialog(null, "Cannot delete Ticket. KOT already sent.");
return false;
}
}
Leave a Reply