X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep202.php;h=08a266519af828d753cec24fe9f9759ed9b35143;hb=ced25a469db48fa4badfcc96e09e414193fe0377;hp=2eb27559689efe240c53f395c0a60089ea79f773;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/reporting/rep202.php b/reporting/rep202.php index 2eb27559..08a26651 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -86,7 +86,7 @@ function print_aged_supplier_analysis() $pg = new graph(); } - if ($fromsupp == ALL_NUMERIC) + if ($fromsupp == ALL_TEXT) $from = _('All'); else $from = get_supplier_name($fromsupp); @@ -145,7 +145,7 @@ function print_aged_supplier_analysis() $pastdue2 = _('Over') . " " . $PastDueDays2 . " " . _('Days'); $sql = "SELECT supplier_id, supp_name AS name, curr_code FROM ".TB_PREF."suppliers"; - if ($fromsupp != ALL_NUMERIC) + if ($fromsupp != ALL_TEXT) $sql .= " WHERE supplier_id=".db_escape($fromsupp); $sql .= " ORDER BY supp_name"; $result = db_query($sql, "The suppliers could not be retrieved");