Bugzilla – Attachment 113219 Details for
Bug 26939
Account payment_type in the cash register details page should use description instead of code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26939: Use AV description in sales table display
Bug-26939-Use-AV-description-in-sales-table-displa.patch (text/plain), 3.06 KB, created by
David Nind
on 2020-11-06 08:54:08 UTC
(
hide
)
Description:
Bug 26939: Use AV description in sales table display
Filename:
MIME Type:
Creator:
David Nind
Created:
2020-11-06 08:54:08 UTC
Size:
3.06 KB
patch
obsolete
>From 2ab1645a5dafa6bbc83d5f2ffde8d02c2dd7d613 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 3 Nov 2020 09:57:32 +0000 >Subject: [PATCH] Bug 26939: Use AV description in sales table display > >Content should use the description rather than the code > >Test plan >1/ Enable 'UseCashRegisters' >2/ Make some payments against a cash register >3/ Navigate to the cash register summary page via tools > cashup >registers > register name >4/ Note that the payment type you selected at payment time appears as >the code of the authorized value as aposed to the description. >5/ Apply patch >6/ Refresh page >7/ The payment type should now contain the description > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >index aad75188c3..b12ef010e5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -90,7 +90,7 @@ > [% IF credit.debit %] > <tr> > <td>[% accountline.accountlines_id | html %]</td> >- <td>{ "type": "credit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% accountline.payment_type | html %])", "amount": "[% accountline.amount * -1 | $Price %]" }</td> >+ <td>{ "type": "credit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) %])", "amount": "[% accountline.amount * -1 | $Price %]" }</td> > <td></td> > <td> > [%- PROCESS account_type_description account=credit.debit -%] >@@ -114,7 +114,7 @@ > [% IF debit.credit %] > <tr> > <td>[% accountline.accountlines_id | html %]</td> >- <td>{ "type": "debit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% accountline.payment_type | html %])", "amount": "[% accountline.amount * -1 | $Price %]" }</td> >+ <td>{ "type": "debit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) %])", "amount": "[% accountline.amount * -1 | $Price %]" }</td> > <td></td> > <td>[%- PROCESS account_type_description account=debit.credit -%]</td> > <td> >-- >2.11.0
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 26939
:
113117
|
113219
|
113752
|
113786