//sales.savePrice(line.getSalePrice(), line.getProductID());
//Stop the line modification of sent products
if (!line.getProperty("sendstatus").equals("No") && !line.getProperty("sendstatus").equals("N/A")){
JOptionPane.showMessageDialog(null, "You cannot modify a sent item.", "Error", JOptionPane.ERROR_MESSAGE);
}else{
ticket.setLine(index, line);
}
setLine.cancel=true;
Leave a Reply