From 3ba1e8b97af5810c00fdf3ecc952901c0a5fa26f Mon Sep 17 00:00:00 2001 From: abijah Date: Mon, 17 Aug 2009 17:23:50 +0000 Subject: [PATCH] Fixed a bug when transitioning to a move-in receipt, and changed the invoice/receipt grids to only contain current customers / active leases. A non-current customer or closed lease can still have a receipt/invoice, the user will just have to go directly to the customer / lease first. OK, so I just checked and that's not true. Perhaps it should be... git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@605 97e9348a-65ac-dc4b-aefc-98561f571b83 --- views/customers/receipt.ctp | 1 + views/leases/invoice.ctp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/views/customers/receipt.ctp b/views/customers/receipt.ctp index 734fb49..55a12e0 100644 --- a/views/customers/receipt.ctp +++ b/views/customers/receipt.ctp @@ -265,6 +265,7 @@ echo $this->element('customers', array array('gridstate' => 'onGridState("#"+$(this).attr("id"), gridstate)'), ), + 'action' => 'current', 'nolinks' => true, 'limit' => 10, ))); diff --git a/views/leases/invoice.ctp b/views/leases/invoice.ctp index edcab61..8f5c5f6 100644 --- a/views/leases/invoice.ctp +++ b/views/leases/invoice.ctp @@ -71,7 +71,7 @@ function showResponse(responseText, statusText) { "url(array('controller' => 'customers', 'action' => 'receipt')); ?>" - + "/" + $("#lease-id").val(); + + "/" + ""; return; } @@ -222,6 +222,7 @@ if (empty($movein)) array('gridstate' => 'onGridState("#"+$(this).attr("id"), gridstate)'), ), + 'action' => 'active', 'nolinks' => true, 'limit' => 10, )));