@@ -, +, @@
POS
---
.../intranet-tmpl/prog/en/modules/pos/register.tt | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt
@@ -129,13 +129,16 @@
[% accountline.accountlines_id | html %] |
{ "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 %]" } |
|
- [%- PROCESS account_type_description account=debit.credit -%] |
+ [%- PROCESS account_type_description account=debit.credit -%]
[%- IF debit.credit.description %][% debit.credit.description | html %][%- END -%]
[%- IF ( debit.credit.itemnumber ) -%] ([% debit.credit.item.biblio.title | html %])[%- END -%]
|
[% debit.credit.amount | $Price %] |
|
+
+ [%- IF debit.credit.credit_type_code == 'REFUND' -%] Details[%- END -%]
+ |
[% END %]
[% END %]
@@ -218,13 +221,16 @@
[% accountline.accountlines_id | html %] |
{ "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 %]" } |
|
- [%- PROCESS account_type_description account=debit.credit -%] |
+ [%- PROCESS account_type_description account=debit.credit -%]
[%- IF debit.credit.description %][% debit.credit.description | html %][%- END -%]
[%- IF ( debit.credit.itemnumber ) -%] ([% debit.credit.item.biblio.title | html %])[%- END -%]
|
[% debit.credit.amount | $Price %] |
|
+
+ [%- IF debit.credit.credit_type_code == 'REFUND' -%] Details[%- END -%]
+ |
[% END %]
[% END %]
--