Workokrders updates as they cycle

This commit is contained in:
2024-04-22 15:09:43 -04:00
parent 684a5459b3
commit 7b7492b5cc
2 changed files with 21 additions and 0 deletions
@@ -171,4 +171,16 @@ public class dbWarehouseHandler extends dbHandlerBase {
}
return false;
}
public void DELETE_WORKORDER(WorkOrder workOrder) {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("DELETE FROM `dyn_workorders` WHERE `workorderID` = ?;")) {
preparedStatement.setInt(1, workOrder.workOrderID);
preparedStatement.executeUpdate();
} catch (SQLException e) {
Logger.error(e);
}
}
}