|
|
@ -202,23 +202,17 @@ public class dbWarehouseHandler extends dbHandlerBase { |
|
|
|
Logger.error(e); |
|
|
|
Logger.error(e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Process workOrder records
|
|
|
|
// Remove the old workOrder records
|
|
|
|
|
|
|
|
|
|
|
|
for (WorkOrder workOrder : submitList) |
|
|
|
for (WorkOrder workOrder : submitList) |
|
|
|
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); |
|
|
|
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); |
|
|
|
|
|
|
|
|
|
|
|
for (WorkOrder workOrder : submitList) { |
|
|
|
// Submit the new workOrders to the ForgeManager
|
|
|
|
|
|
|
|
|
|
|
|
// WorkOrder needs a new ID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (WorkOrder workOrder : submitList) { |
|
|
|
workOrder.workOrderID = ForgeManager.wordOrderCounter.incrementAndGet(); |
|
|
|
workOrder.workOrderID = ForgeManager.wordOrderCounter.incrementAndGet(); |
|
|
|
|
|
|
|
ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder); |
|
|
|
// Reconstruct cooking items
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// Pass the new workOrders to the ForgeManager
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|