X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdb%2Fmanufacturing_db.inc;h=dc635c3a9ec333e2a1b8613a28fff75c865eaa1d;hb=443214a800fa66cd1473b48f6fadd1b09144a5d4;hp=8adddc696142f8fe850a355c15396904d0eac473;hpb=f44132511cc91b83f20f91af0625d4b112b4c26e;p=fa-stable.git diff --git a/includes/db/manufacturing_db.inc b/includes/db/manufacturing_db.inc index 8adddc69..dc635c3a 100644 --- a/includes/db/manufacturing_db.inc +++ b/includes/db/manufacturing_db.inc @@ -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