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;
$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