Moving bugfixes from 2.3 to 2.4 and updated install languages for Denmark and Sweden.
[fa-stable.git] / manufacturing / includes / db / work_order_issues_db.inc
index cfc581d29f19ffd6b4e8a865ae815cba8ba56307..29bc02dde7e4260e1f26ef322ca1aaad5a2e7656 100644 (file)
@@ -75,7 +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"];                
 
         $total_cost += add_gl_trans_std_cost(ST_WORKORDER, $woid, $date_, $ivaccount, 0, 0,
                 $date_.": "._("Issue of")." ".$stockitem["description"], -$issue_cost);                        
@@ -199,7 +199,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"];
 
                if ($issue_cost != 0)
                {