From: Joe Hunt Date: Fri, 24 Jun 2011 10:49:11 +0000 (+0200) Subject: 0000910: Report Aged Customer Analysis Total doesn't match the record totals. X-Git-Tag: 2.3-final~611 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=656daeefb86601a26ee11bccd72ccbe76d23a666;p=fa-stable.git 0000910: Report Aged Customer Analysis Total doesn't match the record totals. --- diff --git a/reporting/rep102.php b/reporting/rep102.php index 2d00c063..18fab24d 100644 --- a/reporting/rep102.php +++ b/reporting/rep102.php @@ -51,11 +51,9 @@ function get_invoices($customer_id, $to, $all=true) IF ((TO_DAYS('$todate') - TO_DAYS($due)) >= $PastDueDays2,$value,0) AS Overdue2 FROM ".TB_PREF."debtors_master, - ".TB_PREF."payment_terms, ".TB_PREF."debtor_trans WHERE ".TB_PREF."debtor_trans.type <> ".ST_CUSTDELIVERY." - AND ".TB_PREF."debtor_trans.payment_terms = ".TB_PREF."payment_terms.terms_indicator AND ".TB_PREF."debtors_master.debtor_no = ".TB_PREF."debtor_trans.debtor_no AND ".TB_PREF."debtor_trans.debtor_no = $customer_id AND ".TB_PREF."debtor_trans.tran_date <= '$todate'