Browse Source

Bug 24525: Remove SIP payment types from point of sale

This patch removes the SIP payments types from displaying in the select
options on the point of sale payment page.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Martin Renvoize 3 years ago
parent
commit
a40912a507
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 8
      koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt

8
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt

@ -112,8 +112,11 @@
<input type="hidden" name="change" value="0.00"/>
</li>
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
[% IF payment_types %]
[% SET payment_types = [] %]
[% FOR pt IN AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
[% NEXT IF pt.authorised_value.grep("^SIP[[:digit:]]{2}$").size() %]
[% payment_types.push(pt) %]
[% END %]
<li>
<label for="payment_type">Payment type: </label>
<select name="payment_type" id="payment_type">
@ -122,7 +125,6 @@
[% END %]
</select>
</li>
[% END %]
[% IF Koha.Preference('UseCashRegisters') %]
<li>

Loading…
Cancel
Save