First pass at entering charges for a lease. This works, but does not have the ability to add multiple charges, and does not mirror the payment method, which is ajax based.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@231 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-06 18:34:44 +00:00
parent cba8e16be7
commit cd07f51ff9
8 changed files with 405 additions and 3 deletions

View File

@@ -94,6 +94,7 @@ class Account extends AppModel {
function securityDepositAccountID() { return $this->nameToID('Security Deposit'); }
function rentAccountID() { return $this->nameToID('Rent'); }
function lateChargeAccountID() { return $this->nameToID('Late Charge'); }
function accountReceivableAccountID() { return $this->nameToID('A/R'); }
function invoiceAccountID() { return $this->nameToID('Invoice'); }
function receiptAccountID() { return $this->nameToID('Receipt'); }

View File

@@ -266,6 +266,19 @@ class Lease extends AppModel {
$this->Unit->updateStatus($this->data['Lease']['unit_id'], $status);
}
/**************************************************************************
**************************************************************************
**************************************************************************
* function: addCharge
* - Adds an additional charge to the lease
*/
function addCharge($id, $charge) {
}
/**************************************************************************
**************************************************************************
**************************************************************************

View File

@@ -25,7 +25,7 @@ class Transaction extends AppModel {
$this->data['Transaction']['stamp'] = null;
}
return true;
return parent::beforeSave();
}
}