X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep203.php;h=7ca090d9d043fef8cfa88aad3550104cdb889b38;hb=5c9265bed9bc5c3e9e2f324c77febe15994b79e9;hp=e6f00ce8c5b46ec372be7e9ac2797e75a21593d0;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/reporting/rep203.php b/reporting/rep203.php index e6f00ce8..7ca090d9 100644 --- a/reporting/rep203.php +++ b/reporting/rep203.php @@ -68,7 +68,7 @@ function print_payment_report() else include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - if ($fromsupp == ALL_NUMERIC) + if ($fromsupp == ALL_TEXT) $from = _('All'); else $from = get_supplier_name($fromsupp); @@ -110,7 +110,7 @@ function print_payment_report() $sql = "SELECT supplier_id, supp_name AS name, curr_code, ".TB_PREF."payment_terms.terms FROM ".TB_PREF."suppliers, ".TB_PREF."payment_terms WHERE "; - if ($fromsupp != ALL_NUMERIC) + if ($fromsupp != ALL_TEXT) $sql .= "supplier_id=".db_escape($fromsupp)." AND "; $sql .= "".TB_PREF."suppliers.payment_terms = ".TB_PREF."payment_terms.terms_indicator ORDER BY supp_name";