Lines 556-569
$(document).ready(function()
Link Here
|
556 |
[% ELSE %] |
556 |
[% ELSE %] |
557 |
<label for="gstrate">Tax rate: </label> |
557 |
<label for="gstrate">Tax rate: </label> |
558 |
<select name="gstrate" id="gstrate" onchange="updateCosts();"> |
558 |
<select name="gstrate" id="gstrate" onchange="updateCosts();"> |
559 |
[% FOREACH gst IN gst_values %] |
559 |
[% SET gst_found = 0 %] |
560 |
[% IF ( gst.option == gstrate ) %] |
560 |
|
561 |
<option value="[% gst.option %]" selected="selected">[% gst.option * 100 %]%</option> |
561 |
[% FOREACH gst IN gst_values %] |
562 |
[% ELSE %] |
562 |
[% IF ( gst.option == gstrate ) %] |
563 |
<option value="[% gst.option %]">[% gst.option * 100 %]%</option> |
563 |
<option value="[% gst.option %]" selected="selected">[% gst.option * 100 %]%</option> |
564 |
[% END %] |
564 |
[% SET gst_found = 1 %] |
565 |
[% END %] |
565 |
[% ELSE %] |
|
|
566 |
<option value="[% gst.option %]">[% gst.option * 100 %]%</option> |
567 |
[% END %] |
568 |
[% END %] |
569 |
|
570 |
[% IF !gst_found %] |
571 |
<option value="[% gstrate %]" selected="selected">[% gstrate * 100 %]%</option> |
572 |
[% END %] |
566 |
</select> |
573 |
</select> |
|
|
574 |
|
575 |
[% IF !gst_found %]<span class="required">Tax rate not defined in system preference gist!</span>[% END %] |
567 |
[% END %] |
576 |
[% END %] |
568 |
[% ELSE %] |
577 |
[% ELSE %] |
569 |
<input type="hidden" name="gstrate" value="0" /> |
578 |
<input type="hidden" name="gstrate" value="0" /> |
570 |
- |
|
|