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");
|
pr("CUSTOMER SAVE FAILED");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now that the work is done, let the user view the updated customer
|
// Exisisting Customer, then view it, else if this
|
||||||
$this->redirect(array('action'=>'view', $this->Customer->id));
|
// is a new customer, go to the move in screen.
|
||||||
//$this->render('/empty');
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,10 +109,14 @@ class LeasesController extends AppController {
|
|||||||
$this->data['Lease']['comment']
|
$this->data['Lease']['comment']
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isset($this->data['redirect']))
|
// Since this is a new lease, go to the invoice
|
||||||
$this->redirect($this->data['redirect']);
|
// screen so we can start assessing charges.
|
||||||
else
|
$this->redirect(array('action'=>'invoice', $lid));
|
||||||
$this->redirect(array('action' => 'view', $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