X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep303.php;h=9794e8c7b3b58b907b5c13565e7c6dc451adf7f5;hb=33dfc21a26f08e9ac19048bbcf80cce2351a6cfe;hp=2f3e7a35404478d7eb9e6b0475a788293c37aab2;hpb=8e897868b82666b6e0eff0e07d45195307aac57b;p=fa-stable.git diff --git a/reporting/rep303.php b/reporting/rep303.php index 2f3e7a35..9794e8c7 100644 --- a/reporting/rep303.php +++ b/reporting/rep303.php @@ -52,7 +52,7 @@ function getTransactions($category, $location, $item_like) { $regexp = null; - if(sscanf($item_like, "/%s", &$regexp)==1) + if(sscanf($item_like, "/%s", $regexp)==1) $sql .= " AND ".TB_PREF."stock_master.stock_id RLIKE ".db_escape($regexp); else $sql .= " AND ".TB_PREF."stock_master.stock_id LIKE ".db_escape($item_like); @@ -71,7 +71,7 @@ function getTransactions($category, $location, $item_like) function print_stock_check() { - global $path_to_root, $pic_height; + global $path_to_root, $SysPrefs; $category = $_POST['PARAM_0']; $location = $_POST['PARAM_1']; @@ -204,10 +204,10 @@ function print_stock_check() if (file_exists($image)) { $rep->NewLine(); - if ($rep->row - $pic_height < $rep->bottomMargin) + if ($rep->row - $SysPrefs->pic_height < $rep->bottomMargin) $rep->NewPage(); - $rep->AddImage($image, $rep->cols[1], $rep->row - $pic_height, 0, $pic_height); - $rep->row -= $pic_height; + $rep->AddImage($image, $rep->cols[1], $rep->row - $SysPrefs->pic_height, 0, $SysPrefs->pic_height); + $rep->row -= $SysPrefs->pic_height; $rep->NewLine(); } } @@ -217,4 +217,3 @@ function print_stock_check() $rep->End(); } -?>