Lines 391-403
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="[% gstrate %]" selected="selected">[% gstrate * 100 | html %]%</option> |
406 |
[% END %] |
401 |
</select> |
407 |
</select> |
402 |
[% ELSE %] |
408 |
[% ELSE %] |
403 |
<input type="hidden" name="tax_rate" value="0" /> |
409 |
<input type="hidden" name="tax_rate" value="0" /> |
404 |
- |
|
|