Bug 23354: (QA follow-up) Add missing filters, remove tab chars
authorJosef Moravec <josef.moravec@gmail.com>
Fri, 10 Jan 2020 09:16:21 +0000 (09:16 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 13 Jan 2020 14:05:54 +0000 (14:05 +0000)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt

index 44c313d..a15a073 100644 (file)
@@ -48,7 +48,7 @@
                                     <td>[% invoice.description | html %]</td>
                                     <td>[% invoice.default_amount | $Price %]</td>
                                     <td>
-                                        <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>
+                                        <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>
                                     </td>
                                 </tr>
                             [% END %]
                                 <select name="cash_register" id="cash_register">
                                     [% FOREACH register IN registers %]
                                       [% IF register.id == registerid %]
-                                    <option value="[% register.id %]" selected="selected">[% register.name | html %]</option>
+                                    <option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option>
                                       [% ELSE %]
-                                    <option value="[% register.id %]">[% register.name | html %]</option>
+                                    <option value="[% register.id | html %]">[% register.name | html %]</option>
                                       [% END %]
                                     [% END %]
                                 </select>
             "fnFooterCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) {
                 var iTotalPrice = 0;
                 for ( var i=0 ; i<aData.length ; i++ )
-                           {
-                                   iTotalPrice += aData[i][3]*1;
-                           }
+                {
+                    iTotalPrice += aData[i][3]*1;
+                }
 
                 iTotalPrice = Number.parseFloat(iTotalPrice).toFixed(2);
                 nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice;