X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fincludes%2Fdb%2Fwork_orders_quick_db.inc;h=e28ee7f09de1dc35de2135035fab40872a806ef6;hb=a756adaebf1b5f9bd6265e6f2388a7f2f180f585;hp=72b5c8df7e0d873a5b2ed3371df46105f21f66ea;hpb=483cea38d9b54874c6fd02116c29e71db9ddeb93;p=fa-stable.git diff --git a/manufacturing/includes/db/work_orders_quick_db.inc b/manufacturing/includes/db/work_orders_quick_db.inc index 72b5c8df..e28ee7f0 100644 --- a/manufacturing/includes/db/work_orders_quick_db.inc +++ b/manufacturing/includes/db/work_orders_quick_db.inc @@ -153,7 +153,7 @@ function work_order_quick_costs($woid, $stock_id, $units_reqd, $date_, $advanced if ($advanced) { //Chaitanya: Material cost added at time of production as per BOM at the time and in adjustment mode. - add_material_cost($stock_id, $units_reqd, $date_, true); + add_material_cost($stock_id, $units_reqd, $date_, true, $woid); // $wo = get_work_order($woid); // also take the additional issues