Modified the page redirects to flow 'new customer' => 'move-in' => 'invoice'. What's missing here is the addition of contacts, but I'll ignore for now.
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@249 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -309,9 +309,16 @@ class CustomersController extends AppController {
|
||||
pr("CUSTOMER SAVE FAILED");
|
||||
}
|
||||
|
||||
// Now that the work is done, let the user view the updated customer
|
||||
$this->redirect(array('action'=>'view', $this->Customer->id));
|
||||
//$this->render('/empty');
|
||||
// Exisisting Customer, then view it, else if this
|
||||
// is a new customer, go to the move in screen.
|
||||
if ($this->data['Customer']['id'])
|
||||
$this->redirect(array('action'=>'view', $this->Customer->id));
|
||||
else
|
||||
$this->redirect(array('action'=>'move_in', $this->Customer->id));
|
||||
|
||||
// For debugging, only if the redirects above have been
|
||||
// commented out, otherwise this section isn't reached.
|
||||
$this->render('/empty');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -109,10 +109,14 @@ class LeasesController extends AppController {
|
||||
$this->data['Lease']['comment']
|
||||
);
|
||||
|
||||
if (isset($this->data['redirect']))
|
||||
$this->redirect($this->data['redirect']);
|
||||
else
|
||||
$this->redirect(array('action' => 'view', $lid));
|
||||
// Since this is a new lease, go to the invoice
|
||||
// screen so we can start assessing charges.
|
||||
$this->redirect(array('action'=>'invoice', $lid));
|
||||
|
||||
// For debugging, only if the redirect above have been
|
||||
// commented out, otherwise this section isn't reached.
|
||||
$this->render('/empty');
|
||||
return;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user