From 796281914491b5b77dcee405877ddfaa894d2c60 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 22 Oct 2013 14:05:48 +0200 Subject: [PATCH] Bug 11111: display the basket group name on the parcel page Test plan: Go on acqui/parcel.pl?invoiceid=XX page and verify the basket group name is displayed into the 2nd column of the pending orders and already received tables. Signed-off-by: Ed Veal Signed-off-by: Katrin Fischer Changed basketgroup to basket group to match spelling on other pages. Works as described, passes tests and QA script. Signed-off-by: Galen Charlton --- C4/Acquisition.pm | 2 ++ .../prog/en/modules/acqui/parcel.tt | 25 ++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index a85dc8ac9f..dc090b86f1 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1678,6 +1678,8 @@ sub SearchOrders { aqbasket.closedate, aqbasket.creationdate, aqbasket.basketname, + aqbasketgroups.id as basketgroupid, + aqbasketgroups.name as basketgroupname, aqorders.* FROM aqorders LEFT JOIN aqbasket ON aqorders.basketno = aqbasket.basketno diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index db6783b81f..b066450e92 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -22,6 +22,7 @@ { "aTargets": [ 3, 8, 9 ], "bSortable": false, "bSearchable": false }, ], "aoColumns": [ + { "sType": "num-html" }, { "sType": "num-html" }, { "sType": "num-html" }, { "sType": "html" }, @@ -42,6 +43,7 @@ { type: "text" }, { type: "text" }, { type: "text" }, + { type: "text" }, null, { type: "text" }, { type: "text" }, @@ -204,6 +206,7 @@ Basket search + Basket group search Order line search Summary search   @@ -216,6 +219,7 @@ Basket + Basket group Order line Summary View record @@ -231,6 +235,13 @@ [% FOREACH loop_order IN loop_orders %] [% loop_order.basketname %] ([% loop_order.basketno %]) + + [% IF loop_order.basketgroupid %] + [% loop_order.basketgroupname %] ([% loop_order.basketgroupid %]) + [% ELSE %] + No basket group + [% END %] + [% loop_order.ordernumber %] [% loop_order.title |html %] @@ -321,6 +332,7 @@ Basket + Basket group Order Line Holds Summary @@ -345,19 +357,19 @@ [% END %] - Total tax exc. + Total tax exc. [% total_gste %] [% FOREACH book_foot IN book_foot_loop %] - Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%) + Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%) [% book_foot.value %] [% END %] - Total tax inc. + Total tax inc. [% total_gsti %] @@ -366,6 +378,13 @@ [% FOREACH loop_receive IN loop_received %] [% loop_receive.basketname %] ([% loop_receive.basketno %]) + + [% IF loop_order.basketgroupid %] + [% loop_receive.basketgroupname %] ([% loop_receive.basketgroupid %]) + [% ELSE %] + No basket group + [% END %] + [% loop_receive.ordernumber %] [% IF loop_receive.holds > 0 %] -- 2.39.5