From cf84240d7a69e34b426f69079a966fa3b9b36a76 Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Thu, 30 May 2013 22:00:47 +0100 Subject: [PATCH] Add link to customer order view. --- haxe/ItemScheduler.hx | 2 +- includes/order_lines.inc | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/haxe/ItemScheduler.hx b/haxe/ItemScheduler.hx index 3c11e12..a015cc4 100644 --- a/haxe/ItemScheduler.hx +++ b/haxe/ItemScheduler.hx @@ -156,7 +156,7 @@ class ItemScheduler { } var cells : Array = [ order.order_id - ,order.deliver_to + , ''+order.deliver_to+'' ,order.quantity ,before ,left diff --git a/includes/order_lines.inc b/includes/order_lines.inc index 62613d1..52d315d 100644 --- a/includes/order_lines.inc +++ b/includes/order_lines.inc @@ -86,7 +86,11 @@ function order_link($row) } function customer_link($row) { - return pager_link(_($row['debtor_ref']), "/modules/order_line_extra/order_lines_view.php?customer_id=${row['debtor_no']}"); + return customer_link2($row['debtor_ref'], $row['debtor_no']); +} + +function customer_link2($name, $id) { + return pager_link(_($name), "/modules/order_line_extra/order_lines_view.php?customer_id=${id}"); } -- 2.30.2