More progress on posting payments. Customer selection now works as well as the date picker. At this point, we need to figure out how to insert this data into the database. Of course, significant cleanup is still required, as is beautification.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@155 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -148,6 +148,8 @@ class CustomersController extends AppController {
|
||||
|
||||
$this->sidemenu_links[] =
|
||||
array('name' => 'Operations', 'header' => true);
|
||||
$this->sidemenu_links[] =
|
||||
array('name' => 'Payment', 'url' => array('action' => 'payment', $id));
|
||||
$this->sidemenu_links[] =
|
||||
array('name' => 'Move-Out', 'url' => array('controller' => 'units', 'action' => 'move-out'));
|
||||
|
||||
@@ -172,12 +174,12 @@ class CustomersController extends AppController {
|
||||
/* $this->redirect(array('action'=>'index')); */
|
||||
/* } */
|
||||
|
||||
if ($this->RequestHandler->isPost()) {
|
||||
pr($this->data);
|
||||
//$this->redirect(array('action'=>'index'));
|
||||
$customer = $this->data;
|
||||
}
|
||||
elseif (isset($id)) {
|
||||
/* if ($this->RequestHandler->isPost()) { */
|
||||
/* pr($this->data); */
|
||||
/* //$this->redirect(array('action'=>'index')); */
|
||||
/* $customer = $this->data; */
|
||||
/* } */
|
||||
if (isset($id)) {
|
||||
$customer = $this->Customer->details($id);
|
||||
unset($customer['deposits']['Entries']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user