From: Joe Hunt Date: Sat, 14 Aug 2021 18:51:49 +0000 (+0200) Subject: Unable to void Work Order. Fixed by @kvvaradha. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=6ca1979dd3d94414a18958346bcb39b984f7a544 Unable to void Work Order. Fixed by @kvvaradha. --- 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);