Bug 24339: Remove SIP payment types from staff pay screens

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2020-01-08 12:48:55 +00:00 committed by Joy Nelson
parent 9c8a182c02
commit dbcdb741bd
1 changed files with 8 additions and 2 deletions

View File

@ -129,13 +129,16 @@
<span id="change">0.00</span>
</li>
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
[% IF payment_types %]
[% SET excluded = ['SIP00', 'SIP01', 'SIP02'] %]
[% IF payment_types.size > 3 %]
<li>
<label for="payment_type">Payment type: </label>
<select name="payment_type" id="payment_type">
<option value=""></option>
[% FOREACH pt IN payment_types %]
[% UNLESS excluded.grep("^$pt.authorised_value\$").size %]
<option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option>
[% END %]
[% END %]
</select>
</li>
@ -258,13 +261,16 @@
<span id="change">0.00</span>
</li>
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
[% IF payment_types %]
[% SET excluded = ['SIP00', 'SIP01', 'SIP02'] %]
[% IF payment_types.size > 3 %]
<li>
<label for="payment_type">Payment type: </label>
<select name="payment_type" id="payment_type">
<option value=""></option>
[% FOREACH pt IN payment_types %]
[% UNLESS excluded.grep("^$pt.authorised_value\$").size %]
<option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option>
[% END %]
[% END %]
</select>
</li>