From 0c954311282afb97c94e184706872c0496745c79 Mon Sep 17 00:00:00 2001 From: abijah Date: Sat, 8 Jan 2011 00:53:40 +0000 Subject: [PATCH] Changed lease status to LATE after the customer is actually late, instead of when late charges start to apply. git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1001 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/models/lease.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/models/lease.php b/site/models/lease.php index 96aaac9..b8bcab4 100644 --- a/site/models/lease.php +++ b/site/models/lease.php @@ -544,7 +544,7 @@ class Lease extends AppModel { function conditionDelinquent($table_name = 'Lease') { if (empty($table_name)) $t = ''; else $t = $table_name . '.'; return ("({$t}close_date IS NULL AND" . - " NOW() > DATE_ADD({$t}paid_through_date, INTERVAL 10 DAY))"); + " NOW() > DATE_ADD({$t}paid_through_date, INTERVAL 1 DAY))"); } function delinquentDaysSQL($table_name = 'Lease') {