X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep401.php;h=096952c7bc4e8b9ddcc24dba1ebd9cd15d51c450;hb=c09be0dad6b05131e240349a375af7a4b7bf3444;hp=c0d3987d30690b1e3a61ae87a52bd52a57c7ca11;hpb=089cd98e0008223e0418389a0f3cdd4b7e7f5bac;p=fa-stable.git diff --git a/reporting/rep401.php b/reporting/rep401.php index c0d3987d..096952c7 100644 --- a/reporting/rep401.php +++ b/reporting/rep401.php @@ -52,8 +52,6 @@ function print_bill_of_material() $frompart = $_POST['PARAM_0']; $topart = $_POST['PARAM_1']; $comments = $_POST['PARAM_2']; - - $dec = user_qty_dec(); $cols = array(0, 50, 305, 375, 445, 515); @@ -87,12 +85,16 @@ function print_bill_of_material() $parent = $trans['parent']; $rep->NewLine(); } - + $rep->NewLine(); + $dec = get_qty_dec($trans['component']); $rep->TextCol(0, 1, $trans['component']); $rep->TextCol(1, 2, $trans['CompDescription']); - $rep->TextCol(2, 3, $trans['loc_code']); - $rep->TextCol(3, 4, $trans['workcentre_added']); + //$rep->TextCol(2, 3, $trans['loc_code']); + //$rep->TextCol(3, 4, $trans['workcentre_added']); + $wc = get_work_centre($trans['workcentre_added']); + $rep->TextCol(2, 3, get_location_name($trans['loc_code'])); + $rep->TextCol(3, 4, $wc['name']); $rep->TextCol(4, 5, number_format2($trans['quantity'], $dec)); } $rep->Line($rep->row - 4);