From: Janusz Dobrowolski Date: Thu, 20 Mar 2008 11:48:07 +0000 (+0000) Subject: Delivery notes removed from Customer Balnces, warning fix. X-Git-Tag: v2.4.2~19^2~2159 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f474e197d8af7acfea554f560a5c45f7d0bef1f7;p=fa-stable.git Delivery notes removed from Customer Balnces, warning fix. --- diff --git a/reporting/rep101.php b/reporting/rep101.php index fa6d8328..3fd3e979 100644 --- a/reporting/rep101.php +++ b/reporting/rep101.php @@ -30,7 +30,9 @@ function get_transactions($debtorno, $date) ((".TB_PREF."debtor_trans.type = 10) AND ".TB_PREF."debtor_trans.due_date < '$date') AS OverDue FROM ".TB_PREF."debtor_trans, ".TB_PREF."sys_types - WHERE ".TB_PREF."debtor_trans.tran_date <= '$date' AND ".TB_PREF."debtor_trans.debtor_no = '$debtorno' + WHERE ".TB_PREF."debtor_trans.tran_date <= '$date' + AND ".TB_PREF."debtor_trans.debtor_no = '$debtorno' + AND ".TB_PREF."debtor_trans.type != 13 AND ".TB_PREF."debtor_trans.type = ".TB_PREF."sys_types.type_id ORDER BY ".TB_PREF."debtor_trans.tran_date"; @@ -82,8 +84,8 @@ function print_customer_balances() $rep->Info($params, $cols, $headers, $aligns); $rep->Header(); - $total = array(); - $grandtotal = array(); + $total = array(0,0,0,0); + $grandtotal = array(0,0,0,0); $sql = "SELECT debtor_no, name, curr_code FROM ".TB_PREF."debtors_master "; if ($fromcust != reserved_words::get_all_numeric()) @@ -105,7 +107,6 @@ function print_customer_balances() if (db_num_rows($res)==0) continue; $rep->Line($rep->row + 4); - $total[0] = $total[1] = $total[2] = $total[3] = 0.0; while ($trans = db_fetch($res)) { $rep->NewLine(1, 2);