Bugzilla – Attachment 98641 Details for
Bug 24525
Hide SIP payment types from the Point of Sale page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24525: (QA follow-up) Make payment type required with cash registers
Bug-24525-QA-follow-up-Make-payment-type-required-.patch (text/plain), 2.35 KB, created by
Martin Renvoize (ashimema)
on 2020-02-10 09:17:40 UTC
(
hide
)
Description:
Bug 24525: (QA follow-up) Make payment type required with cash registers
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-02-10 09:17:40 UTC
Size:
2.35 KB
patch
obsolete
>From 9de9976cb279039a24749dc90853fee8330a0248 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 10 Feb 2020 09:15:51 +0000 >Subject: [PATCH] Bug 24525: (QA follow-up) Make payment type required with > cash registers > >The use of cash registers adds the requirement to enter a payment type, >this patch adds the required status when cash registers are configured. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/payments.inc | 4 ++++ > koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 2 -- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/payments.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/payments.inc >index e6b5d597d5..8fa9b1d691 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/payments.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/payments.inc >@@ -8,8 +8,12 @@ > [% IF payment_types.size > 0 %] > <li> > <label for="payment_type">Payment type: </label> >+ [% IF Koha.Preference('UseCashRegisters') %] >+ <select name="payment_type" id="payment_type" required> >+ [% ELSE %] > <select name="payment_type" id="payment_type"> > <option value=""></option> >+ [% END %] > [% FOREACH pt IN payment_types %] > <option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option> > [% END %] >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 f3c781034f..e0a68b1436 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >@@ -114,7 +114,6 @@ > > [% PROCESS account_payment_types %] > >- [% IF Koha.Preference('UseCashRegisters') %] > <li> > <label for="cash_register">Cash register: </label> > <select name="cash_register" id="cash_register"> >@@ -127,7 +126,6 @@ > [% END %] > </select> > </li> >- [% END %] > </ol> > > </fieldset> >-- >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 24525
:
98035
|
98187
|
98547
|
98548
|
98580
|
98581
| 98641