private void saveCut()
    {
        if (txtSleevesMade.getText().trim().isEmpty())
        {
            String message = "Please input sleeves cut";
            JOptionPane.showMessageDialog(this, message, "Error", JOptionPane.ERROR_MESSAGE);
        }
        else
        {
            int amountCut = Integer.parseInt(txtSleevesMade.getText()) + order.getConductedQuantity();
            
            if (amountCut < order.getQuantity())
            {
                order.setConductedQuantity(amountCut);
                try
                {
                    managerOrder.update(order);
                    managerSleeveLog.addLog(order.getSleeve().getId(), operator, amountCut, 0);
                    dispose();
                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
            }
            else if (amountCut == order.getQuantity())
            {
                order.setConductedQuantity(amountCut);
                String status = "Finished";
                order.setStatus(status.toUpperCase());
                try
                {
                    managerOrder.update(order);
                    managerSleeveLog.addLog(order.getSleeve().getId(), operator, amountCut, 0);
                    dispose();
                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
            }
            else
            {
                String message = "You cant cut more than the total quantity";
                JOptionPane.showMessageDialog(this, message, "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    }