First pass at having invoice support multiple charges, just like receipt/payment. It works well, but I know we still need a better solution for income accounts, and it hasn't been robustly tested yet.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@243 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-07 04:37:04 +00:00
parent 65e3c99ae9
commit ae442db01f
3 changed files with 132 additions and 52 deletions

View File

@@ -202,11 +202,6 @@ class LeasesController extends AppController {
// Of course, the late charge should come from the late_schedule
$charge['amount'] = 10.00;
$redirect = array('controller' => 'leases',
'action' => 'view',
$id);
$this->set(compact('redirect'));
$title = ('Lease #' . $lease['Lease']['number'] . ': ' .
$lease['Unit']['name'] . ': ' .
$lease['Customer']['name'] . ': Charge Entry');

View File

@@ -118,11 +118,9 @@ class TransactionsController extends AppController {
die("<H1>INVOICE FAILED</H1>");
}
// Comment this out to debug
$this->redirect($this->data['redirect']);
pr($this->data['redirect']);
$this->render('/empty');
$this->layout = null;
$this->autoLayout = false;
$this->autoRender = false;
}