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 ('
' . '