X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep303.php;h=1cfab257919bd862636f370bd1107bab99d407f0;hb=5bdc773f0bb3f962a0a37ecc4647dc4e0d2e64e8;hp=801561f197ddccba89e3108ff0e8a0cdc8ba3afa;hpb=7a50c189ea995d5fe6785feb7710c00396065d2b;p=fa-stable.git diff --git a/reporting/rep303.php b/reporting/rep303.php index 801561f1..1cfab257 100644 --- a/reporting/rep303.php +++ b/reporting/rep303.php @@ -94,7 +94,7 @@ function getDemandAsmQty($stockid, $location) function print_stock_check() { - global $path_to_root, $pic_height, $pic_width; + global $comp_path, $path_to_root, $pic_height, $pic_width; include_once($path_to_root . "reporting/includes/pdf_report.inc"); @@ -103,8 +103,6 @@ function print_stock_check() $pictures = $_POST['PARAM_2']; $comments = $_POST['PARAM_3']; - $dec = user_qty_dec(); - if ($category == reserved_words::get_all_numeric()) $category = 0; if ($category == 0) @@ -159,6 +157,7 @@ function print_stock_check() $demandqty = getDemandQty($trans['stock_id'], $trans['loc_code']); $demandqty += getDemandAsmQty($trans['stock_id'], $trans['loc_code']); $rep->NewLine(); + $dec = get_qty_dec($trans['stock_id']); $rep->TextCol(0, 1, $trans['stock_id']); $rep->TextCol(1, 2, $trans['description']); $rep->TextCol(2, 3, number_format2($trans['QtyOnHand'], $dec)); @@ -166,7 +165,7 @@ function print_stock_check() $rep->TextCol(4, 5, number_format2($trans['QtyOnHand'] - $demandqty, $dec)); if ($pictures) { - $image = $path_to_root . "inventory/manage/image/" . $user_comp . "/" . $trans['stock_id'] . ".jpg"; + $image = $comp_path .'/'. $user_comp . '/images/' . $trans['stock_id'] . '.jpg'; if (file_exists($image)) { $rep->NewLine();