Fix in Popup Customer Window. Extended width to 700.
[fa-stable.git] / includes / db / manufacturing_db.inc
index 8adddc696142f8fe850a355c15396904d0eac473..dc635c3a9ec333e2a1b8613a28fff75c865eaa1d 100644 (file)
@@ -50,7 +50,7 @@ function load_stock_levels($location)
        return $qoh_stock;
 }
 
-// recursion fixed by Tom Moulton. Max 10 recursion levels.
+// recursion fixed. Max 10 recursion levels.
 function stock_demand_manufacture($stock_id, $qty, $demand_id, $location, $level=0) 
 {
        global $bom_list, $qoh_stock;
@@ -222,8 +222,8 @@ function get_bom($item)
        $sql = "SELECT bom.*, loc.location_name,
                centre.name AS WorkCentreDescription,
        item.description, item.mb_flag AS ResourceType, 
-       item.material_cost+item.labour_cost+item.overhead_cost AS standard_cost, units,
-       bom.quantity * (item.material_cost+ item.labour_cost+ item.overhead_cost) AS ComponentCost 
+       item.material_cost AS ProductCost, units,
+       bom.quantity * item.material_cost AS ComponentCost 
        FROM ".TB_PREF."workcentres centre,
                ".TB_PREF."locations loc,
                ".TB_PREF."bom bom