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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-7 / +6 lines)
Lines 48-54 Link Here
48
                                    <td>[% invoice.description | html %]</td>
48
                                    <td>[% invoice.description | html %]</td>
49
                                    <td>[% invoice.default_amount | $Price %]</td>
49
                                    <td>[% invoice.default_amount | $Price %]</td>
50
                                    <td>
50
                                    <td>
51
                                        <button class="add_button" data-invoice-code="[% invoice.code %]" data-invoice-title="[% invoice.description | html %]" data-invoice-price="[% invoice.default_amount | html %]"><i class="fa fa-plus"></i> Add</button>
51
                                        <button class="add_button" data-invoice-code="[% invoice.code | html %]" data-invoice-title="[% invoice.description | html %]" data-invoice-price="[% invoice.default_amount | html %]"><i class="fa fa-plus"></i> Add</button>
52
                                    </td>
52
                                    </td>
53
                                </tr>
53
                                </tr>
54
                            [% END %]
54
                            [% END %]
Lines 123-131 Link Here
123
                                <select name="cash_register" id="cash_register">
123
                                <select name="cash_register" id="cash_register">
124
                                    [% FOREACH register IN registers %]
124
                                    [% FOREACH register IN registers %]
125
                                      [% IF register.id == registerid %]
125
                                      [% IF register.id == registerid %]
126
                                    <option value="[% register.id %]" selected="selected">[% register.name | html %]</option>
126
                                    <option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option>
127
                                      [% ELSE %]
127
                                      [% ELSE %]
128
                                    <option value="[% register.id %]">[% register.name | html %]</option>
128
                                    <option value="[% register.id | html %]">[% register.name | html %]</option>
129
                                      [% END %]
129
                                      [% END %]
130
                                    [% END %]
130
                                    [% END %]
131
                                </select>
131
                                </select>
Lines 321-329 Link Here
321
            "fnFooterCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) {
321
            "fnFooterCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) {
322
                var iTotalPrice = 0;
322
                var iTotalPrice = 0;
323
                for ( var i=0 ; i<aData.length ; i++ )
323
                for ( var i=0 ; i<aData.length ; i++ )
324
			    {
324
                {
325
				    iTotalPrice += aData[i][3]*1;
325
                    iTotalPrice += aData[i][3]*1;
326
			    }
326
                }
327
327
328
                iTotalPrice = Number.parseFloat(iTotalPrice).toFixed(2);
328
                iTotalPrice = Number.parseFloat(iTotalPrice).toFixed(2);
329
                nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice;
329
                nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice;
330
- 

Return to bug 23354