Fixed bug charging customers again when there is not charge through date.

git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1019 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2012-11-17 18:20:48 +00:00
parent 99a98cbc7d
commit 20284046c3

View File

@@ -347,6 +347,8 @@ class Lease extends AppModel {
$this->pr(17, compact('date', 'charge_through_date')
+ array('date_str' => date('Y-m-d', $date),
'charge_through_date_str' => date('Y-m-d', $charge_through_date)));
if (!$charge_through_date)
return $this->prReturn(null);
if ($charge_through_date >= $date)
return $this->prReturn(null);