From 294aabbb29e7cfa2f7d1d18f9ae03ccb926794fd Mon Sep 17 00:00:00 2001 From: abijah Date: Mon, 24 Aug 2009 20:25:09 +0000 Subject: [PATCH] Removed the lease/customer link from invoice/receipt git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@767 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/views/customers/receipt.ctp | 28 +++------------------------- site/views/elements/leases.ctp | 5 ++--- site/views/leases/invoice.ctp | 25 ++----------------------- 3 files changed, 7 insertions(+), 51 deletions(-) diff --git a/site/views/customers/receipt.ctp b/site/views/customers/receipt.ctp index 4901e19..ff121cd 100644 --- a/site/views/customers/receipt.ctp +++ b/site/views/customers/receipt.ctp @@ -111,19 +111,8 @@ function onGridLoadComplete() { function onRowSelect(grid_id, customer_id) { // Set the customer id that will be returned with the form $("#customer-id").val(customer_id); - - // Get the item names from the grid - //$("#receipt-customer-id").html($(grid_id).getCell(customer_id, 'Customer-id')); - // REVISIT : 20090708 - // This is not intended as a long term solution, - // but I need a way to enter data and then view - // the results. This link will help. - $("#receipt-customer-id").html('url(array('controller' => 'customers', - 'action' => 'view')); ?>" - + "/" + customer_id + '">' + - '#' + customer_id + - ''); + + // Set the customer name, so the user knows who the receipt is for $("#receipt-customer-name").html($(grid_id).getCell(customer_id, 'Customer-name')); // Hide the "no customer" message and show the current customer @@ -271,8 +260,7 @@ echo $this->element('customers', array echo ('
' . '