From 6ca1979dd3d94414a18958346bcb39b984f7a544 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sat, 14 Aug 2021 20:51:49 +0200 Subject: [PATCH] Unable to void Work Order. Fixed by @kvvaradha. --- manufacturing/includes/db/work_order_produce_items_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manufacturing/includes/db/work_order_produce_items_db.inc b/manufacturing/includes/db/work_order_produce_items_db.inc index c05bac96..cdbd81c0 100644 --- a/manufacturing/includes/db/work_order_produce_items_db.inc +++ b/manufacturing/includes/db/work_order_produce_items_db.inc @@ -161,7 +161,7 @@ function void_work_order_produce($type_no) return; // deduct the quantity of this production from the parent work order - work_order_update_finished_quantity($prod["workorder_id"], -$prod["quantity"], false); + work_order_update_finished_quantity($prod["workorder_id"], -$prod["quantity"]); // clear the production record $sql = "UPDATE ".TB_PREF."wo_manufacture SET quantity=0 WHERE id=".db_escape($type_no); -- 2.30.2