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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-8 / +15 lines)
Lines 391-404 Link Here
391
                <li>
391
                <li>
392
                    <label for="tax_rate">Tax rate: </label>
392
                    <label for="tax_rate">Tax rate: </label>
393
                    <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
393
                    <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
394
                    [% FOREACH gst IN gst_values %]
394
                        [% SET gst_found = 0 %]
395
                      [% IF ( gst.option == tax_rate ) %]
395
                        [% FOREACH gst IN gst_values %]
396
                        <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option>
396
                          [% IF ( gst.option == tax_rate ) %]
397
                      [% ELSE %]
397
                            <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option>
398
                        <option value="[% gst.option | html %]">[% gst.option * 100 | html %]%</option>
398
                            [% SET gst_found = 1 %]
399
                      [% END %]
399
                          [% ELSE %]
400
                    [% END %]
400
                            <option value="[% gst.option | html %]">[% gst.option * 100 | html %]%</option>
401
                          [% END %]
402
                        [% END %]
403
404
                        [% IF !gst_found %]
405
                            <option value="[% tax_rate %]" selected="selected">[% tax_rate * 100 | html %]%</option>
406
                        [% END %]
401
                    </select>
407
                    </select>
408
409
                    [% IF !gst_found %]<span class="required">Tax rate not defined in system preference gist!</span>[% END %]
402
            [% ELSE %]
410
            [% ELSE %]
403
                    <input type="hidden" name="tax_rate" value="0" />
411
                    <input type="hidden" name="tax_rate" value="0" />
404
                </li>
412
                </li>
405
- 

Return to bug 14543