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@605 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -265,6 +265,7 @@ echo $this->element('customers', array
|
||||
array('gridstate' =>
|
||||
'onGridState("#"+$(this).attr("id"), gridstate)'),
|
||||
),
|
||||
'action' => 'current',
|
||||
'nolinks' => true,
|
||||
'limit' => 10,
|
||||
)));
|
||||
|
||||
@@ -71,7 +71,7 @@ function showResponse(responseText, statusText) {
|
||||
<?php else: ?>
|
||||
"<?php echo $html->url(array('controller' => 'customers',
|
||||
'action' => 'receipt')); ?>"
|
||||
+ "/" + $("#lease-id").val();
|
||||
+ "/" + "<?php echo $customer['id']; ?>";
|
||||
<?php endif; ?>
|
||||
return;
|
||||
}
|
||||
@@ -222,6 +222,7 @@ if (empty($movein))
|
||||
array('gridstate' =>
|
||||
'onGridState("#"+$(this).attr("id"), gridstate)'),
|
||||
),
|
||||
'action' => 'active',
|
||||
'nolinks' => true,
|
||||
'limit' => 10,
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user