From 01c236baaa84270b7be3a8d87fa6ad300978d908 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 25 Feb 2021 14:20:14 +0000 Subject: [PATCH] Bug 27795: Misalignment of TOTAL value in lateorders page This patch corrects the colspan in the footer of the late orders page. It also adds a quantity total cell to the footer and changes the container of the buttons at the bottom of the page from a

tag to the standard

. To test, apply the patch and go to Acquisitions -> Late orders. In the footer of the late orders page, there should be a total under the "Quantity" column. The total cost number should be correctly aligned under the "total cost" header cell. --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt index 97b7aacc2f..389003a6e0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -50,6 +50,7 @@

[% END %] [% SET total = 0 %] + [% SET total_quantity = 0 %] [% IF bookseller_filter %]

Check all Uncheck all

[% END %] @@ -108,7 +109,10 @@ [% END %] [% END %] - [% lateorder.quantity | html %] + + [% lateorder.quantity | html %] + [% SET total_quantity = total_quantity + lateorder.quantity %] + [% SET subtotal = (lateorder.quantity - lateorder.quantityreceived) * lateorder.rrp %] [% SET total = total + subtotal %] @@ -176,14 +180,14 @@ Total + [% total_quantity | html %] [% total | $Price %]   -
-

+

Export as CSV @@ -198,7 +202,7 @@
-

+
[% ELSE %]

There are no late orders.

[% END %] -- 2.11.0