X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Frep409.php;h=bf6bb3d466fe0b75ac78b170a37df1718a8477bd;hb=510d6e1925c4d1621ae3efd85e117cc9bb4320f0;hp=7140ee23d084ed436d44e54fa0d28066de44ac45;hpb=902f1015d874c33bd7946b17de2ad80b4f2144b6;p=fa-stable.git diff --git a/reporting/rep409.php b/reporting/rep409.php index 7140ee23..bf6bb3d4 100644 --- a/reporting/rep409.php +++ b/reporting/rep409.php @@ -33,7 +33,7 @@ print_workorders(); function print_workorders() { - global $path_to_root; + global $path_to_root, $SysPrefs; include_once($path_to_root . "/reporting/includes/pdf_report.inc"); @@ -103,7 +103,7 @@ function print_workorders() $qoh = get_qoh_on_date($myrow2["stock_id"], $myrow2["loc_code"], $date_); if ($show_qoh && ($myrow2["units_req"] * $myrow["units_issued"] > $qoh) && - !sys_prefs::allow_negative_stock()) + !$SysPrefs->allow_negative_stock()) { // oops, we don't have enough of one of the component items $has_marked = true; @@ -131,7 +131,7 @@ function print_workorders() $rep->NewLine(1); $rep->TextCol(0, 5," *** = "._("Insufficient stock"), -2); - $comments = get_comments(26, $i); + $comments = get_comments(ST_WORKORDER, $i); if ($comments && db_num_rows($comments)) { $rep->NewLine();