X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fincludes%2Fdb%2Fwork_orders_quick_db.inc;h=63c69475d388955c42ef2bf11e30c397abfd9d10;hb=d5618f84e921515fa6ce6ec05180f0651119c297;hp=43e0d5bb1f7098409f0458583673f0d93f86352f;hpb=a9e2c0e710a5431ce3c31ef89d4c94bf69538238;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 43e0d5bb..63c69475 100644 --- a/manufacturing/includes/db/work_orders_quick_db.inc +++ b/manufacturing/includes/db/work_orders_quick_db.inc @@ -144,7 +144,8 @@ function work_order_quick_costs($woid, $stock_id, $units_reqd, $date_, $advanced if (!is_service($bom_accounts["mb_flag"])) $ivaccount = $bom_accounts["inventory_account"]; else - $ivaccount = $bom_accounts["cogs_account"]; + // $ivaccount = $bom_accounts["cogs_account"]; + $ivaccount = $bom_accounts["assembly_account"]; // changed 2015.10.14 by Petros . $total_cost += add_gl_trans_std_cost(ST_WORKORDER, $woid, $date_, $ivaccount, 0, 0, $memo, -$bom_cost); $total_material_cost += $bom_cost; @@ -154,7 +155,7 @@ function work_order_quick_costs($woid, $stock_id, $units_reqd, $date_, $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); - $wo = get_work_order($woid); + // $wo = get_work_order($woid); // also take the additional issues // moved to work_order_issues_db.inc /*