Changed the GL accounts in Manufacturing to go from Cost accounts to Assembly Account...
[fa-stable.git] / manufacturing / includes / db / work_orders_quick_db.inc
index 43e0d5bb1f7098409f0458583673f0d93f86352f..63c69475d388955c42ef2bf11e30c397abfd9d10 100644 (file)
@@ -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
                /*