Reverted invalid changes in manufacturing accounts back to cogs_account for BOM servi...
[fa-stable.git] / manufacturing / includes / db / work_order_issues_db.inc
index 13f4e84036191414e48e1c9870ad5629b77e789d..ca2f4a86883b5d213f556cc460a5c738b3b41275 100644 (file)
@@ -75,8 +75,7 @@ function add_work_order_issue($woid, $ref, $to_work_order, $items, $location, $w
                if (!is_service($issue["mb_flag"]))
                        $ivaccount = $issue["inventory_account"];
                else
-                       // $ivaccount = $issue["cogs_account"];         
-                        $ivaccount = $issue["assembly_account"]; // changed 2015.10.14 by Petros .             
+                       $ivaccount = $issue["cogs_account"];            
                
         $total_cost += add_gl_trans_std_cost(ST_WORKORDER, $woid, $date_, $ivaccount, 0, 0,
                 $date_.": "._("Issue of")." ".$stockitem["description"], -$issue_cost);                        
@@ -201,8 +200,7 @@ function void_work_order_issue($type_no)
                if (!is_service($issue["mb_flag"]))
                        $ivaccount = $issue["inventory_account"];
                else
-                       // $ivaccount = $issue["cogs_account"];         
-                        $ivaccount = $issue["assembly_account"]; // changed 2015.10.14 by Petros .             
+                       $ivaccount = $issue["cogs_account"];            
                
                if ($issue_cost != 0)
                {