X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep201.php;h=b176f2bdb8461591bb158f660df28944958fc3f1;hb=efc1a9ce400be6233323af9c193ab9460407bcf6;hp=a5614755dc079e4f0053fcafc8cc91847a51f8e6;hpb=ddadb47f2620ce6902ad4694ce6512568862ba05;p=fa-stable.git diff --git a/reporting/rep201.php b/reporting/rep201.php index a5614755..b176f2bd 100644 --- a/reporting/rep201.php +++ b/reporting/rep201.php @@ -125,15 +125,15 @@ function print_supplier_balances() $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); - $rep->Header(); + $rep->NewPage(); $total = array(); $grandtotal = array(0,0,0,0); - $sql = "SELECT supplier_id, supp_name AS name, curr_code FROM ".TB_PREF."suppliers "; + $sql = "SELECT supplier_id, supp_name AS name, curr_code FROM ".TB_PREF."suppliers"; if ($fromsupp != ALL_NUMERIC) - $sql .= "WHERE supplier_id=$fromsupp "; - $sql .= "ORDER BY supp_name"; + $sql .= " WHERE supplier_id=".db_escape($fromsupp); + $sql .= " ORDER BY supp_name"; $result = db_query($sql, "The customers could not be retrieved"); while ($myrow=db_fetch($result))