Bugzilla – Attachment 116138 Details for
Bug 26272
Allow cashup summaries to be displayed from the library summary page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26272: Add ajax driven cashup modal to library page
Bug-26272-Add-ajax-driven-cashup-modal-to-library-.patch (text/plain), 2.35 KB, created by
Martin Renvoize (ashimema)
on 2021-02-01 08:42:50 UTC
(
hide
)
Description:
Bug 26272: Add ajax driven cashup modal to library page
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-02-01 08:42:50 UTC
Size:
2.35 KB
patch
obsolete
>From d7fa219095b927905ebc19fbcc869e9eeda595c5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 28 Jan 2021 09:08:24 +0000 >Subject: [PATCH] Bug 26272: Add ajax driven cashup modal to library page > >This patch adds an ajax driven cashup summary modal to the library >registers summary page. > >Test plan >1/ Enable UseCashRegisters in the system preferences >2/ Add at least one cash register to your library >3/ Make some payments of various types (Cash, Card) against the cash >register >4/ View the register transactions details page >5/ Make a refund against a payment >6/ Cashup >7/ View the cashup summary by clicking on the 'Summary' link on the >register page. >8/ Navigate to the 'libraries' summary page >9/ View the cashup summary by clicking on the 'Summary' link in the >registers table. >10/ Signoff >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >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 65f593a1dc..a606b24ffa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt >@@ -75,7 +75,7 @@ > <td>[% register.description | html %]</td> > <td> > [%- IF register.last_cashup -%] >- [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %] ([% register.last_cashup.amount | $Price %]) >+ [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %] (<a data-toggle="modal" data-cashup="[% register.last_cashup.id | html %]" data-register="[% register.description | html %]" href="#cashupSummaryModal" class="button">Summary</a>) > [%- ELSE -%] > No last cashup > [%- END -%] >@@ -177,8 +177,11 @@ > </div> <!-- /.modal-dialog --> > </div> <!-- /#confirmCashupAllModal --> > >+ [% INCLUDE 'modals/cashup_summary.inc' %] >+ > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >+ [% Asset.js("js/cashup_modal.js") | $raw %] > <script> > $(document).ready(function () { > >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26272
:
115993
|
116138
|
116147
|
116177
|
116606
|
117764