X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fincludes%2Fmanufacturing_ui.inc;h=5753b716bd51f7025960f6ef33afb33b0a2ef31e;hb=d984052f31e45bfdec6a308dfe189e515f30fd35;hp=eb14c8a11c64dcd3309d2e873845beda9fcc7769;hpb=72af4496f87c438dc85a0a7573d36b7bd9e49624;p=fa-stable.git diff --git a/manufacturing/includes/manufacturing_ui.inc b/manufacturing/includes/manufacturing_ui.inc index eb14c8a1..5753b716 100644 --- a/manufacturing/includes/manufacturing_ui.inc +++ b/manufacturing/includes/manufacturing_ui.inc @@ -37,7 +37,7 @@ function display_bom($item_check) label_cell($myrow["description"]); label_cell($myrow["WorkCentreDescription"]); label_cell($myrow["location_name"]); - qty_cell($myrow["quantity"]); + qty_cell($myrow["quantity"], false, get_qty_dec($myrow["component"])); amount_cell($myrow["standard_cost"]); amount_cell($myrow["ComponentCost"]); end_row(); @@ -88,7 +88,7 @@ function display_wo_requirements($woid, $quantity, $show_qoh=false, $date=null) { $qoh = 0; - + $show_qoh = true; // if it's a non-stock item (eg. service) don't show qoh if (!has_stock_holding($myrow["mb_flag"])) $show_qoh = false; @@ -113,11 +113,12 @@ function display_wo_requirements($woid, $quantity, $show_qoh=false, $date=null) label_cell($myrow["location_name"]); label_cell($myrow["WorkCentreDescription"]); - qty_cell($myrow["units_req"]); - qty_cell($myrow["units_req"] * $quantity); - qty_cell($myrow["units_issued"]); + $dec = get_qty_dec($myrow["stock_id"]); + qty_cell($myrow["units_req"], false, $dec); + qty_cell($myrow["units_req"] * $quantity, false, $dec); + qty_cell($myrow["units_issued"], false, $dec); if ($show_qoh) - qty_cell($qoh); + qty_cell($qoh, false, $dec); else label_cell(""); end_row(); @@ -163,7 +164,7 @@ function display_wo_productions($woid) label_cell(get_trans_view_str(29, $myrow["id"])); label_cell($myrow['reference']); label_cell(sql2date($myrow["date_"])); - qty_cell($myrow['quantity']); + qty_cell($myrow['quantity'], false, get_qty_dec($myrow['reference'])); end_row(); }//end of while @@ -284,13 +285,13 @@ function display_wo_details($woid, $suppress_view_link=false) label_cell($myrow["location_name"]); label_cell(sql2date($myrow["date_"])); label_cell(sql2date($myrow["required_by"])); - - qty_cell($myrow["units_reqd"]); + $dec = get_qty_dec($myrow["stock_id"]); + qty_cell($myrow["units_reqd"], false, $dec); if ($myrow["released"] == true) { label_cell(sql2date($myrow["released_date"])); - qty_cell($myrow["units_issued"]); + qty_cell($myrow["units_issued"], false, $dec); } end_row(); @@ -335,7 +336,7 @@ function display_wo_details_quick($woid, $suppress_view_link=false) label_cell($myrow["location_name"]); label_cell(sql2date($myrow["date_"])); - qty_cell($myrow["units_issued"]); + qty_cell($myrow["units_issued"], false, get_qty_dec($myrow["stock_id"])); end_row();