Bugzilla – Attachment 88715 Details for
Bug 22511
Koha::Account::Line->void loses the original type of the credit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22511: (QA follow-up) Refactor status description in templates
Bug-22511-QA-follow-up-Refactor-status-description.patch (text/plain), 6.67 KB, created by
Martin Renvoize (ashimema)
on 2019-04-25 08:44:11 UTC
(
hide
)
Description:
Bug 22511: (QA follow-up) Refactor status description in templates
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-25 08:44:11 UTC
Size:
6.67 KB
patch
obsolete
>From 46b2328990248eca4bc1675a0dd7a5c3a797b275 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Thu, 25 Apr 2019 08:28:13 +0000 >Subject: [PATCH] Bug 22511: (QA follow-up) Refactor status description in > templates > >Test plan: > >Before this patch, some accounttypes does not show status (for example > voided payment) > >After this patch, the status is always generated - defaults to empty >string > >This behaviour should be same in intranet and opac > >In OPAC templates there was even bug (used variable account instead of > ACCOUNt_LINE), so the status was not shown at all > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../prog/en/includes/accounts.inc | 43 ++++++++++--------- > .../bootstrap/en/includes/account-table.inc | 17 ++++---- > 2 files changed, 31 insertions(+), 29 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc >index a37fd3a941..9b1be90c05 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc >@@ -1,27 +1,28 @@ > [%- BLOCK account_type_description -%] > [%- SWITCH account.accounttype -%] >- [%- CASE 'Pay' -%]<span>Payment</span> >- [%- CASE 'Pay00' -%]<span>Payment (cash via SIP2)</span> >- [%- CASE 'Pay01' -%]<span>Payment (VISA via SIP2)</span> >- [%- CASE 'Pay02' -%]<span>Payment (credit card via SIP2)</span> >- [%- CASE 'N' -%]<span>New card</span> >- [%- CASE 'OVERDUE' -%]<span>Fine[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'A' -%]<span>Account management fee</span> >- [%- CASE 'M' -%]<span>Sundry</span> >- [%- CASE 'L' -%]<span>Lost item</span> >- [%- CASE 'W' -%]<span>Writeoff[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'HE' -%]<span>Hold waiting too long</span> >- [%- CASE 'Rent' -%]<span>Rental fee</span> >- [%- CASE 'FOR' -%]<span>Forgiven[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'LR' -%]<span>Lost item fee refund[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'PF' -%]<span>Lost item processing fee[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'PAY' -%]<span>Payment[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'WO' -%]<span>Writeoff[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'C' -%]<span>Credit[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'CR' -%]<span>Credit[%- PROCESS account_status_description account=account -%]</span> >- [%- CASE 'Res' -%]<span>Hold fee</span> >- [%- CASE -%][% account.accounttype | html %] >+ [%- CASE 'Pay' -%]<span>Payment >+ [%- CASE 'Pay00' -%]<span>Payment (cash via SIP2) >+ [%- CASE 'Pay01' -%]<span>Payment (VISA via SIP2) >+ [%- CASE 'Pay02' -%]<span>Payment (credit card via SIP2) >+ [%- CASE 'N' -%]<span>New card >+ [%- CASE 'OVERDUE' -%]<span>Fine >+ [%- CASE 'A' -%]<span>Account management fee >+ [%- CASE 'M' -%]<span>Sundry >+ [%- CASE 'L' -%]<span>Lost item >+ [%- CASE 'W' -%]<span>Writeoff >+ [%- CASE 'HE' -%]<span>Hold waiting too long >+ [%- CASE 'Rent' -%]<span>Rental fee >+ [%- CASE 'FOR' -%]<span>Forgiven >+ [%- CASE 'LR' -%]<span>Lost item fee refund >+ [%- CASE 'PF' -%]<span>Lost item processing fee >+ [%- CASE 'PAY' -%]<span>Payment >+ [%- CASE 'WO' -%]<span>Writeoff >+ [%- CASE 'C' -%]<span>Credit >+ [%- CASE 'CR' -%]<span>Credit >+ [%- CASE 'Res' -%]<span>Hold fee >+ [%- CASE -%]<span>[% account.accounttype | html %] > [%- END -%] >+ [%- PROCESS account_status_description account=account -%]</span> > [%- END -%] > > [%- BLOCK offset_type_description -%] >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 11e5d0a58d..e2bb1a1b36 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc >@@ -35,23 +35,24 @@ > [% CASE 'Pay02' %]Payment (credit card via SIP2) > [% CASE 'VOID' %]Voided > [% CASE 'N' %]New card >- [% CASE 'OVERDUE' %]Fine[%- PROCESS account_status_description account=account -%] >+ [% CASE 'OVERDUE' %]Fine > [% CASE 'A' %]Account management fee > [% CASE 'M' %]Sundry > [% CASE 'L' %]Lost item >- [% CASE 'W' %]Writeoff[%- PROCESS account_status_description account=account -%] >+ [% CASE 'W' %]Writeoff > [% CASE 'HE' %]Hold waiting too long > [% CASE 'Rent' %]Rental fee >- [% CASE 'FOR' %]Forgiven[%- PROCESS account_status_description account=account -%] >- [% CASE 'LR' %]Lost item fee refund[%- PROCESS account_status_description account=account -%] >+ [% CASE 'FOR' %]Forgiven >+ [% CASE 'LR' %]Lost item fee refund > [% 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 'PAY' %]Payment >+ [% CASE 'WO' %]Writeoff >+ [% CASE 'C' %]Credit >+ [% CASE 'CR' %]Credit > [%-CASE 'Res' %]Hold fee > [% CASE %][% ACCOUNT_LINE.accounttype | html %] > [%- END -%] >+ [%- PROCESS account_status_description account=ACCOUNT_LINE -%] > </td> > <td> > [%- IF ACCOUNT_LINE.payment_type %][% AuthorisedValues.GetByCode('PAYMENT_TYPE', ACCOUNT_LINE.payment_type, 1) | html %][% END %] >-- >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 22511
:
86674
|
86675
|
86903
|
86904
|
86905
|
86915
|
86916
|
86917
|
87088
|
87089
|
87090
|
87091
|
87221
|
87222
|
87223
|
87224
|
87632
|
87633
|
87634
|
87635
|
87650
|
87651
|
87652
|
87653
|
87654
|
87704
|
87706
|
87796
|
87797
|
87798
|
87799
|
87800
|
87869
|
87870
|
87871
|
87872
|
87873
|
88707
|
88708
|
88709
|
88710
|
88711
|
88712
|
88713
|
88714
| 88715 |
88748