X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep202.php;h=0ea9e5f80f8ca6eb12ad07bb680f1ddc99c0d386;hb=582e4a2443d9ed6ca67f47c05b7d92772b53b805;hp=c61c2aa5dd9ba290d8df939f8a7f69622895e764;hpb=bd8f517d30d1edd3261e26e582ddd9e11c555616;p=fa-stable.git diff --git a/reporting/rep202.php b/reporting/rep202.php index c61c2aa5..0ea9e5f8 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -47,9 +47,9 @@ function get_invoices($supplier_id, $to, $all=true) ".TB_PREF."supp_trans.reference, ".TB_PREF."supp_trans.tran_date, $value as Balance, - IF ((TO_DAYS('$todate') - TO_DAYS($due)) >= 0,$value,0) AS Due, - IF ((TO_DAYS('$todate') - TO_DAYS($due)) >= $PastDueDays1,$value,0) AS Overdue1, - IF ((TO_DAYS('$todate') - TO_DAYS($due)) >= $PastDueDays2,$value,0) AS Overdue2 + IF ((TO_DAYS('$todate') - TO_DAYS($due)) > 0,$value,0) AS Due, + IF ((TO_DAYS('$todate') - TO_DAYS($due)) > $PastDueDays1,$value,0) AS Overdue1, + IF ((TO_DAYS('$todate') - TO_DAYS($due)) > $PastDueDays2,$value,0) AS Overdue2 FROM ".TB_PREF."suppliers, ".TB_PREF."payment_terms,