X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fincludes%2Fdb%2Fwork_order_produce_items_db.inc;h=cdbd81c0a500d1448aac12ca1c70b09923758919;hb=331673104c056da093f60cde57d731371fbdc6ee;hp=c05bac96c7b2d214be113e23972643394e404e02;hpb=fcf15181965c266c81d7f142cd5e92e7818e958e;p=fa-stable.git 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);