Unable to void Work Order. Fixed by @kvvaradha.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 14 Aug 2021 18:51:49 +0000 (20:51 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 14 Aug 2021 18:51:49 +0000 (20:51 +0200)
manufacturing/includes/db/work_order_produce_items_db.inc

index c05bac96c7b2d214be113e23972643394e404e02..cdbd81c0a500d1448aac12ca1c70b09923758919 100644 (file)
@@ -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);