Bug 28390: Move timestamp into grouping row
This patch moves the timestamp that was getting repeated for each transaction breakdown row into the group header row. Test plan 1/ Add a series of transactions to to a register (via Point of Sale or/and Borrower Accounts) 2/ View the transactions (and past transactions tables) on the Register details page 3/ Apply the patch and compare the display Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ca90632c5d
commit
d83639b066
|
|
@ -103,8 +103,8 @@
|
|||
[% 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 -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]" }</td>
|
||||
<td>[% IF accountline.timestamp %][% accountline.timestamp | $KohaDates with_hours => 1 %][% END %]</td>
|
||||
<td>{ "type": "credit", "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 %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
|
||||
<td></td>
|
||||
<td>
|
||||
[%- PROCESS account_type_description account=credit.debit -%]
|
||||
[%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%]
|
||||
|
|
@ -127,7 +127,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 -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', 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 ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
|
||||
<td></td>
|
||||
<td>[%- PROCESS account_type_description account=debit.credit -%]</td>
|
||||
<td>
|
||||
|
|
@ -192,8 +192,8 @@
|
|||
[% 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 -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]" }</td>
|
||||
<td>[% IF accountline.timestamp %][% accountline.timestamp | $KohaDates with_hours => 1 %][% END %]</td>
|
||||
<td>{ "type": "credit", "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 %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
|
||||
<td></td>
|
||||
<td>
|
||||
[%- PROCESS account_type_description account=credit.debit -%]
|
||||
[%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%]
|
||||
|
|
@ -216,7 +216,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 -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', 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 ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
|
||||
<td></td>
|
||||
<td>[%- PROCESS account_type_description account=debit.credit -%]</td>
|
||||
<td>
|
||||
|
|
@ -342,7 +342,7 @@
|
|||
var details = JSON.parse(rows.data().pluck(1).pop());
|
||||
var identifier = details.identifier || group;
|
||||
return $('<tr class="'+details.type+'"/>')
|
||||
.append( '<td>'+identifier+'</td>' )
|
||||
.append( '<td>'+details.timestamp+' ('+identifier+')</td>' )
|
||||
.append( '<td colspan="2">'+details.description+'</td>' )
|
||||
.append( '<td>'+details.amount+'</td>' )
|
||||
.append( '<td><button class="printReceipt btn btn-default btn-xs" data-accountline="'+group+'"><i class="fa fa-print"></i> ' + _("Print receipt") + '</button></td>');
|
||||
|
|
@ -366,7 +366,7 @@
|
|||
var details = JSON.parse(rows.data().pluck(1).pop());
|
||||
var identifier = details.identifier || group;
|
||||
return $('<tr class="'+details.type+'"/>')
|
||||
.append( '<td>'+identifier+'</td>' )
|
||||
.append( '<td>'+details.timestamp+' ('+identifier+')</td>' )
|
||||
.append( '<td colspan="2">'+details.description+'</td>' )
|
||||
.append( '<td>'+details.amount+'</td>' )
|
||||
.append( '<td><button class="printReceipt btn btn-default btn-xs" data-accountline="'+group+'"><i class="fa fa-print"></i> Print receipt</button></td>');
|
||||
|
|
|
|||
Loading…
Reference in New Issue