From eb782f5cc672b1ccdab1355267df12bd019f38aa Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 6 Apr 2023 16:04:26 +0000 Subject: [PATCH] Bug 33434: Use template wrapper for breadcrumbs: Point of sale This patch updates point of sale templates so that they use the new WRAPPER for displaying breadcrumbs. To test, apply the patch and test each page and its variations. Breadcrumbs should look correct, and each link should be correct. - If necessary, enable the EnablePointOfSale and UseCashRegisters system preferences. - If none are configured, define at least one register and at least one debit type by going to Administration -> Cash registers and Administration -> Debit types. - From the staff interface's user menu in the upper right of the header, choose "Set library and cash register." - Select a cash register. - Go to the Point of Sale page, and check the breadcrumbs on that page. - Check the "Transaction history for [register name]" and "Cash summary for [library] pages linked in the left-hand sidebar. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/pos/pay.tt | 19 +++++--------- .../prog/en/modules/pos/register.tt | 23 ++++++----------- .../prog/en/modules/pos/registers.tt | 25 +++++++------------ 3 files changed, 23 insertions(+), 44 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index 64fdb88fac..40f276e9c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -18,19 +18,12 @@ [% END %] [% WRAPPER 'sub-header.inc' %] - -[% END %] + [% WRAPPER breadcrumbs %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Point of sale + [% END %] + [% END #/ WRAPPER breadcrumbs %] +[% END #/ WRAPPER sub-header.inc %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt index bafe7494eb..776d8b19a4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt @@ -18,22 +18,15 @@ [% END %] [% WRAPPER 'sub-header.inc' %] - -[% END %] + [% END %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Transaction history for [% register.name | html %] + [% END %] + [% END #/ WRAPPER breadcrumbs %] +[% END #/ WRAPPER sub-header.inc %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt index d80d018989..3b78072e1c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt @@ -15,22 +15,15 @@ [% END %] [% WRAPPER 'sub-header.inc' %] - - [% END %] + [% WRAPPER breadcrumbs %] + [% WRAPPER breadcrumb_item %] + Cash management + [% END %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Cash summary for [% library.branchname | html %] + [% END %] + [% END #/ WRAPPER breadcrumbs %] + [% END #/ WRAPPER sub-header.inc %]
-- 2.39.5