From e1f62fc09758762528b455d37c70cc7fc3525734 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 22 Mar 2019 12:00:00 +0000 Subject: [PATCH] Bug 22511: Update UI to use accountlines.status Signed-off-by: Martin Renvoize --- .../prog/en/includes/accounts.inc | 20 +++++++++---------- .../bootstrap/en/includes/account-table.inc | 17 ++++++++-------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc index 1d7db2b233..cd5330bbd1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc @@ -4,23 +4,22 @@ [%- CASE 'Pay00' -%]Payment, thanks (cash via SIP2) [%- CASE 'Pay01' -%]Payment, thanks (VISA via SIP2) [%- CASE 'Pay02' -%]Payment, thanks (credit card via SIP2) - [%- CASE 'VOID' -%]Voided [%- CASE 'N' -%]New card [%- CASE 'OVERDUE' -%]Fine[%- PROCESS account_status_description account=account -%] [%- CASE 'A' -%]Account management fee [%- CASE 'M' -%]Sundry [%- CASE 'L' -%]Lost item - [%- CASE 'W' -%]Writeoff + [%- CASE 'W' -%]Writeoff[%- PROCESS account_status_description account=account -%] [%- CASE 'HE' -%]Hold waiting too long [%- CASE 'Rent' -%]Rental fee - [%- CASE 'FOR' -%]Forgiven - [%- CASE 'FFOR' -%]Fine forgiven - [%- CASE 'LR' -%]Lost item fee refund - [%- CASE 'PF' -%]Lost item processing fee - [%- CASE 'PAY' -%]Payment - [%- CASE 'WO' -%]Writeoff - [%- CASE 'C' -%]Credit - [%- CASE 'CR' -%]Credit + [%- CASE 'FOR' -%]Forgiven[%- PROCESS account_status_description account=account -%] + [%- CASE 'FFOR' -%]Fine forgiven[%- PROCESS account_status_description account=account -%] + [%- CASE 'LR' -%]Lost item fee refund[%- PROCESS account_status_description account=account -%] + [%- CASE 'PF' -%]Lost item processing fee + [%- CASE 'PAY' -%]Payment[%- PROCESS account_status_description account=account -%] + [%- CASE 'WO' -%]Writeoff[%- PROCESS account_status_description account=account -%] + [%- CASE 'C' -%]Credit[%- PROCESS account_status_description account=account -%] + [%- CASE 'CR' -%]Credit[%- PROCESS account_status_description account=account -%] [%- CASE 'Res' -%]Hold fee [%- CASE -%][% account.accounttype | html %] [%- END -%] @@ -45,6 +44,7 @@ [%- CASE 'RETURNED' -%] (Returned) [%- CASE 'REPLACED' -%] (Replaced) [%- CASE 'FORGIVEN' -%] (Forgiven) + [%- CASE 'VOID' -%] (Voided) [%- CASE -%] [%- END -%] [%- END -%] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc index da9146a35d..f9aefa9535 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc @@ -39,17 +39,17 @@ [% CASE 'A' %]Account management fee [% CASE 'M' %]Sundry [% CASE 'L' %]Lost item - [% CASE 'W' %]Writeoff + [% CASE 'W' %]Writeoff[%- PROCESS account_status_description account=account -%] [% CASE 'HE' %]Hold waiting too long [% CASE 'Rent' %]Rental fee - [% CASE 'FOR' %]Forgiven - [% CASE 'FFOR' %]Fine forgiven - [% CASE 'LR' %]Lost item fee refund + [% CASE 'FOR' %]Forgiven[%- PROCESS account_status_description account=account -%] + [% CASE 'FFOR' %]Fine forgiven[%- PROCESS account_status_description account=account -%] + [% CASE 'LR' %]Lost item fee refund[%- PROCESS account_status_description account=account -%] [% CASE 'PF' %]Lost item processing fee - [% CASE 'PAY' %]Payment - [% CASE 'WO' %]Writeoff - [% CASE 'C' %]Credit - [% CASE 'CR' %]Credit + [% CASE 'PAY' %]Payment[%- PROCESS account_status_description account=account -%] + [% CASE 'WO' %]Writeoff[%- PROCESS account_status_description account=account -%] + [% CASE 'C' %]Credit[%- PROCESS account_status_description account=account -%] + [% CASE 'CR' %]Credit[%- PROCESS account_status_description account=account -%] [%-CASE 'Res' %]Hold fee [% CASE %][% ACCOUNT_LINE.accounttype | html %] [%- END -%] @@ -122,6 +122,7 @@ [%- CASE 'RETURNED' -%] (Returned) [%- CASE 'REPLACED' -%] (Replaced) [%- CASE 'FORGIVEN' -%] (Forgiven) + [%- CASE 'VOID' -%] (Voided) [%- CASE -%] [%- END -%] [%- END -%] -- 2.20.1