Took some of the new learnings from invoice generation and put into receipt generations. Also moved some shared functions to pmgr.js, and renamed things for consistency.
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@239 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -169,11 +169,11 @@ class LeasesController extends AppController {
|
||||
/**************************************************************************
|
||||
**************************************************************************
|
||||
**************************************************************************
|
||||
* action: assess
|
||||
* - Assesses charges to the lease
|
||||
* action: invoice
|
||||
* - Sets up the invoice entry page for the given customer.
|
||||
*/
|
||||
|
||||
function assess($id = null, $type = null) {
|
||||
function invoice($id = null, $type = null) {
|
||||
|
||||
$lease = $this->Lease->find
|
||||
('first', array
|
||||
@@ -209,7 +209,7 @@ class LeasesController extends AppController {
|
||||
|
||||
$title = ('Lease #' . $lease['Lease']['number'] . ': ' .
|
||||
$lease['Unit']['name'] . ': ' .
|
||||
$lease['Customer']['name'] . ': Assess Charges');
|
||||
$lease['Customer']['name'] . ': Charge Entry');
|
||||
$this->set(compact('title', 'lease', 'charge'));
|
||||
}
|
||||
|
||||
@@ -255,11 +255,11 @@ class LeasesController extends AppController {
|
||||
array('name' => 'Operations', 'header' => true);
|
||||
|
||||
$this->sidemenu_links[] =
|
||||
array('name' => 'Assess Rent', 'url' => array('action' => 'assess',
|
||||
array('name' => 'Assess Rent', 'url' => array('action' => 'invoice',
|
||||
$id, 'rent'));
|
||||
|
||||
$this->sidemenu_links[] =
|
||||
array('name' => 'Assess Late Charge', 'url' => array('action' => 'assess',
|
||||
array('name' => 'Assess Late Charge', 'url' => array('action' => 'invoice',
|
||||
$id, 'late'));
|
||||
|
||||
if (!isset($lease['Lease']['moveout_date'])) {
|
||||
@@ -270,7 +270,7 @@ class LeasesController extends AppController {
|
||||
|
||||
$this->sidemenu_links[] =
|
||||
array('name' => 'Payment', 'url' => array('controller' => 'customers',
|
||||
'action' => 'payment',
|
||||
'action' => 'receipt',
|
||||
$lease['Customer']['id']));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user