View | Details | Raw Unified | Return to bug 28390
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-8 / +7 lines)
Lines 103-110 Link Here
103
                            [% IF credit.debit %]
103
                            [% IF credit.debit %]
104
                            <tr>
104
                            <tr>
105
                                <td>[% accountline.accountlines_id | html %]</td>
105
                                <td>[% accountline.accountlines_id | html %]</td>
106
                                <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>
106
                                <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>
107
                                <td>[% IF accountline.timestamp %][% accountline.timestamp | $KohaDates with_hours => 1 %][% END %]</td>
107
                                <td></td>
108
                                <td>
108
                                <td>
109
                                    [%- PROCESS account_type_description account=credit.debit -%]
109
                                    [%- PROCESS account_type_description account=credit.debit -%]
110
                                    [%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%]
110
                                    [%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%]
Lines 127-133 Link Here
127
                            [% IF debit.credit %]
127
                            [% IF debit.credit %]
128
                            <tr>
128
                            <tr>
129
                                <td>[% accountline.accountlines_id | html %]</td>
129
                                <td>[% accountline.accountlines_id | html %]</td>
130
                                <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>
130
                                <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>
131
                                <td></td>
131
                                <td></td>
132
                                <td>[%- PROCESS account_type_description account=debit.credit -%]</td>
132
                                <td>[%- PROCESS account_type_description account=debit.credit -%]</td>
133
                                <td>
133
                                <td>
Lines 192-199 Link Here
192
                            [% IF credit.debit %]
192
                            [% IF credit.debit %]
193
                            <tr>
193
                            <tr>
194
                                <td>[% accountline.accountlines_id | html %]</td>
194
                                <td>[% accountline.accountlines_id | html %]</td>
195
                                <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>
195
                                <td>{ "type": "credit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% accountline.payment_type | html %])", "amount": "[% accountline.amount * -1 | $Price %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td>
196
                                <td>[% IF accountline.timestamp %][% accountline.timestamp | $KohaDates with_hours => 1 %][% END %]</td>
196
                                <td></td>
197
                                <td>
197
                                <td>
198
                                    [%- PROCESS account_type_description account=credit.debit -%]
198
                                    [%- PROCESS account_type_description account=credit.debit -%]
199
                                    [%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%]
199
                                    [%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%]
Lines 338-344 Link Here
338
                    var details = JSON.parse(rows.data().pluck(1).pop());
338
                    var details = JSON.parse(rows.data().pluck(1).pop());
339
                    var identifier = details.identifier || group;
339
                    var identifier = details.identifier || group;
340
                    return $('<tr class="'+details.type+'"/>')
340
                    return $('<tr class="'+details.type+'"/>')
341
                        .append( '<td>'+identifier+'</td>' )
341
                        .append( '<td>'+details.timestamp+' ('+identifier+')</td>' )
342
                        .append( '<td colspan="2">'+details.description+'</td>' )
342
                        .append( '<td colspan="2">'+details.description+'</td>' )
343
                        .append( '<td>'+details.amount+'</td>' )
343
                        .append( '<td>'+details.amount+'</td>' )
344
                        .append( '<td><button class="printReceipt btn btn-default btn-xs" data-accountline="'+group+'"><i class="fa fa-print"></i> ' + _("Print receipt") + '</button></td>');
344
                        .append( '<td><button class="printReceipt btn btn-default btn-xs" data-accountline="'+group+'"><i class="fa fa-print"></i> ' + _("Print receipt") + '</button></td>');
Lines 362-368 Link Here
362
                    var details = JSON.parse(rows.data().pluck(1).pop());
362
                    var details = JSON.parse(rows.data().pluck(1).pop());
363
                    var identifier = details.identifier || group;
363
                    var identifier = details.identifier || group;
364
                    return $('<tr class="'+details.type+'"/>')
364
                    return $('<tr class="'+details.type+'"/>')
365
                        .append( '<td>'+identifier+'</td>' )
365
                        .append( '<td>'+details.timestamp+' ('+identifier+')</td>' )
366
                        .append( '<td colspan="2">'+details.description+'</td>' )
366
                        .append( '<td colspan="2">'+details.description+'</td>' )
367
                        .append( '<td>'+details.amount+'</td>' )
367
                        .append( '<td>'+details.amount+'</td>' )
368
                        .append( '<td><button class="printReceipt btn btn-default btn-xs" data-accountline="'+group+'"><i class="fa fa-print"></i> Print receipt</button></td>');
368
                        .append( '<td><button class="printReceipt btn btn-default btn-xs" data-accountline="'+group+'"><i class="fa fa-print"></i> Print receipt</button></td>');
369
- 

Return to bug 28390