Lines 653-682
Link Here
|
653 |
<input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" /> |
653 |
<input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" /> |
654 |
[% END %] |
654 |
[% END %] |
655 |
</li> |
655 |
</li> |
|
|
656 |
<li> |
656 |
[% IF ( gst_values ) %] |
657 |
[% IF ( gst_values ) %] |
657 |
<li> |
658 |
<label for="tax_rate">Tax rate: </label> |
658 |
<label for="tax_rate">Tax rate: </label> |
659 |
<select name="tax_rate" id="tax_rate" onchange="updateCosts();"> |
659 |
<select name="tax_rate" id="tax_rate" onchange="updateCosts();"> |
660 |
[% SET gst_found = 0 %] |
660 |
[% SET gst_found = 0 %] |
661 |
[% FOREACH gst IN gst_values %] |
661 |
[% FOREACH gst IN gst_values %] |
662 |
[% IF ( gst.option == tax_rate ) %] |
662 |
[% IF ( gst.option == tax_rate ) %] |
663 |
<option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option> |
663 |
<option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option> |
664 |
[% SET gst_found = 1 %] |
664 |
[% SET gst_found = 1 %] |
665 |
[% ELSE %] |
665 |
[% ELSE %] |
666 |
<option value="[% gst.option | html %]">[% gst.option * 100 | html %]%</option> |
666 |
<option value="[% gst.option | html %]">[% gst.option * 100 | html %]%</option> |
667 |
[% END %] |
667 |
[% END %] |
668 |
[% END %] |
668 |
[% END %] |
|
|
669 |
|
669 |
|
670 |
[% IF !gst_found %] |
670 |
[% IF !gst_found %] |
671 |
<option value="[% tax_rate | html %]" selected="selected">[% tax_rate * 100 | html %]%</option> |
671 |
<option value="[% tax_rate | html %]" selected="selected">[% tax_rate * 100 | html %]%</option> |
672 |
[% END %] |
672 |
[% END %] |
673 |
</select> |
673 |
</select> |
674 |
|
674 |
|
675 |
[% IF !gst_found %]<span class="required">Tax rate not defined in system preference TaxRates!</span>[% END %] |
675 |
[% IF !gst_found %]<span class="required">Tax rate not defined in system preference TaxRates!</span>[% END %] |
676 |
[% ELSE %] |
676 |
[% ELSE %] |
677 |
<input type="hidden" name="tax_rate" value="0" /> |
677 |
<input type="hidden" name="tax_rate" value="0" /> |
678 |
</li> |
|
|
679 |
[% END %] |
678 |
[% END %] |
|
|
679 |
</li> |
680 |
<li> |
680 |
<li> |
681 |
<label for="discount">Discount: </label> |
681 |
<label for="discount">Discount: </label> |
682 |
[% IF ( ordernumber ) %] |
682 |
[% IF ( ordernumber ) %] |
683 |
- |
|
|