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/site@155 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-17 05:17:59 +00:00
parent d6c7fbb735
commit b8de98917a
5 changed files with 181 additions and 68 deletions

View File

@@ -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']);
}