Bugzilla – Attachment 123477 Details for
Bug 28389
One should be able to see details for refunds on the register summary page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28389: Add 'Details' link to refund type payout lines in POS
Bug-28389-Add-Details-link-to-refund-type-payout-l.patch (text/plain), 4.79 KB, created by
Martin Renvoize (ashimema)
on 2021-08-05 10:32:11 UTC
(
hide
)
Description:
Bug 28389: Add 'Details' link to refund type payout lines in POS
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-08-05 10:32:11 UTC
Size:
4.79 KB
patch
obsolete
>From 94252a8578878be81ad63479ea7f2ebffa73dd17 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 19 May 2021 14:24:33 +0100 >Subject: [PATCH] Bug 28389: Add 'Details' link to refund type payout lines in > POS > >This patch adds a link to the account-details page for refund type >payout lines displaying on the register details page of cash management. > >Test plan >1/ Enable 'UseCashRegisters' >2/ Add some transactions with at least one including a 'Refund' >3/ Look at the transaction history for the current register (Tools > >Cash management > Transaction history for X) >4/ Note the refund line does not contain a link to 'Details' >5/ Apply the patch >6/ The refund line should now have a 'Details' button on the right. >7/ Bonus points, perform a cashup and then search for older transactions >and check the 'Details' button appears in this table too. > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/modules/pos/register.tt | 10 ++++++++-- > 1 file changed, 8 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 4ebc04669b..1e3bfa2089 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -129,13 +129,16 @@ > <td>[% accountline.accountlines_id | html %]</td> > <td>{ "type": "debit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]" }</td> > <td></td> >- <td>[%- PROCESS account_type_description account=debit.credit -%]</td> > <td> >+ [%- PROCESS account_type_description account=debit.credit -%] > [%- IF debit.credit.description %][% debit.credit.description | html %][%- END -%] > [%- IF ( debit.credit.itemnumber ) -%] (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% debit.credit.item.biblionumber | uri %]&itemnumber=[% debit.credit.itemnumber | uri %]">[% debit.credit.item.biblio.title | html %]</a>)[%- END -%] > </td> > <td>[% debit.credit.amount | $Price %]</td> > <td></td> >+ <td> >+ [%- IF debit.credit.credit_type_code == 'REFUND' -%]<a href="/cgi-bin/koha/members/accountline-details.pl?accountlines_id=[% debit.credit.accountlines_id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>[%- END -%] >+ </td> > </tr> > [% END %] > [% END %] >@@ -218,13 +221,16 @@ > <td>[% accountline.accountlines_id | html %]</td> > <td>{ "type": "debit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]" }</td> > <td></td> >- <td>[%- PROCESS account_type_description account=debit.credit -%]</td> > <td> >+ [%- PROCESS account_type_description account=debit.credit -%] > [%- IF debit.credit.description %][% debit.credit.description | html %][%- END -%] > [%- IF ( debit.credit.itemnumber ) -%] (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% debit.credit.item.biblionumber | uri %]&itemnumber=[% debit.credit.itemnumber | uri %]">[% debit.credit.item.biblio.title | html %]</a>)[%- END -%] > </td> > <td>[% debit.credit.amount | $Price %]</td> > <td></td> >+ <td> >+ [%- IF debit.credit.credit_type_code == 'REFUND' -%]<a href="/cgi-bin/koha/members/accountline-details.pl?accountlines_id=[% debit.credit.accountlines_id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>[%- END -%] >+ </td> > </tr> > [% END %] > [% 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 28389
:
121175
|
121189
|
123477
|
123479
|
126023