X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep203.php;h=7ca090d9d043fef8cfa88aad3550104cdb889b38;hb=26229b5446802a5fbc9582ede69c5a2ca5348a81;hp=b1a42730a6723b690d56ff10942367d9d6dadeac;hpb=e1ad4f3f77cb20f692185b0b5e493820c5fb7f77;p=fa-stable.git diff --git a/reporting/rep203.php b/reporting/rep203.php index b1a42730..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); @@ -103,14 +103,14 @@ function print_payment_report() $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); - $rep->Header(); + $rep->NewPage(); $total = array(); $grandtotal = array(0,0); $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";