@@ -, +, @@ Level values for manual credit in pay.tt and replaced the description with string "Credit" --- .../intranet-tmpl/prog/en/modules/members/pay.tt | 68 +++++++++++++--------- 1 file changed, 40 insertions(+), 28 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -101,6 +101,7 @@ function enableCheckboxActions(){ [% END %] + [% IF ( line.amountoutstanding > 0 ) %] [% IF CAN_user_updatecharges_writeoff %][% END %] @@ -117,35 +118,46 @@ function enableCheckboxActions(){ - [% SWITCH line.accounttype %] - [% CASE 'Pay' %]Payment, thanks - [% CASE 'Pay00' %]Payment, thanks (cash via SIP2) - [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2) - [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2) - [% CASE 'N' %]New card - [% CASE 'F' %]Fine - [% CASE 'A' %]Account management fee - [% CASE 'M' %]Sundry - [% CASE 'L' %]Lost item - [% CASE 'W' %]Writeoff - [% CASE 'FU' %]Accruing fine - [% CASE 'HE' %]Hold waiting too long - [% CASE 'Rent' %]Rental fee - [% CASE 'FOR' %]Forgiven - [% CASE 'LR' %]Lost item fee refund - [% CASE 'PAY' %]Payment - [% CASE 'WO' %]Writeoff - [% CASE 'C' %]Credit - [% CASE 'CR' %]Credit - [% CASE %][% line.accounttype %] - [%- END -%] - [%- IF line.description %], [% line.description %][% END %] - [% IF line.title %]([% line.title %])[% END %] + [% IF (line.amountoutstanding > 0) %] + [% SWITCH line.accounttype %] + [% CASE 'Pay' %]Payment, thanks + [% CASE 'Pay00' %]Payment, thanks (cash via SIP2) + [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2) + [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2) + [% CASE 'N' %]New card + [% CASE 'F' %]Fine + [% CASE 'A' %]Account management fee + [% CASE 'M' %]Sundry + [% CASE 'L' %]Lost item + [% CASE 'W' %]Writeoff + [% CASE 'FU' %]Accruing fine + [% CASE 'HE' %]Hold waiting too long + [% CASE 'Rent' %]Rental fee + [% CASE 'FOR' %]Forgiven + [% CASE 'LR' %]Lost item fee refund + [% CASE 'PAY' %]Payment + [% CASE 'WO' %]Writeoff + [% CASE 'C' %]Credit + [% CASE 'CR' %]Credit + [% CASE %][% line.accounttype %] + [%- END -%] + [%- IF line.description %], [% line.description %][% END %] + [% IF line.title %]([% line.title %])[% END %] + [% ELSE %] + Credit + [% END %] - - [% line.accounttype %] - [% line.notify_id %] - [% line.notify_level %] + [% IF (line.amountoutstanding > 0) %] + + [% line.accounttype %] + [% line.notify_id %] + [% line.notify_level %] + [% ELSE %] + + + + + [% END %] [% line.amount | $Price %] [% line.amountoutstanding | $Price %] --