Lines 518-531
Link Here
|
518 |
</td> |
518 |
</td> |
519 |
[% SET zero_regex = "^0{1,}\.?0{1,}[^1-9]" %] [%# 0 or 0.0 or 0.00 or 00 or 00.0 or 00.00 or 0.000 ... %] |
519 |
[% SET zero_regex = "^0{1,}\.?0{1,}[^1-9]" %] [%# 0 or 0.0 or 0.00 or 00 or 00.0 or 00.00 or 0.000 ... %] |
520 |
[%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %] |
520 |
[%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %] |
521 |
<td class="number [% IF books_loo.rrp_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_excluded | $Price | html %]</td> |
521 |
<td class="number [% IF books_loo.rrp_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_excluded | $Price %]</td> |
522 |
<td class="number [% IF books_loo.ecost_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_excluded | $Price | html %]</td> |
522 |
<td class="number [% IF books_loo.ecost_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_excluded | $Price %]</td> |
523 |
<td class="number [% IF books_loo.rrp_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_included | $Price | html %]</td> |
523 |
<td class="number [% IF books_loo.rrp_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.rrp_tax_included | $Price %]</td> |
524 |
<td class="number [% IF books_loo.ecost_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_included | $Price | html %]</td> |
524 |
<td class="number [% IF books_loo.ecost_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.ecost_tax_included | $Price %]</td> |
525 |
<td class="number [% IF books_loo.replacementprice.search(zero_regex) %]error[% END %]">[% books_loo.replacementprice | $Price %]</td> |
525 |
<td class="number [% IF books_loo.replacementprice.search(zero_regex) %]error[% END %]">[% books_loo.replacementprice | $Price %]</td> |
526 |
<td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity | html %]</td> |
526 |
<td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity | html %]</td> |
527 |
<td class="number [% IF books_loo.total_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_excluded | $Price | html %]</td> |
527 |
<td class="number [% IF books_loo.total_tax_excluded.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_excluded | $Price %]</td> |
528 |
<td class="number [% IF books_loo.total_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_included | $Price | html %]</td> |
528 |
<td class="number [% IF books_loo.total_tax_included.search(zero_regex) %]error[% END %]">[% books_loo.total_tax_included | $Price %]</td> |
529 |
<td class="number">[% books_loo.tax_rate * 100 | html %]</td> |
529 |
<td class="number">[% books_loo.tax_rate * 100 | html %]</td> |
530 |
<td class="number [% IF books_loo.tax_value.search(zero_regex) %]error[% END %]">[% books_loo.tax_value | $Price %]</td> |
530 |
<td class="number [% IF books_loo.tax_value.search(zero_regex) %]error[% END %]">[% books_loo.tax_value | $Price %]</td> |
531 |
<td>[% books_loo.budget_name | html %]</td> |
531 |
<td>[% books_loo.budget_name | html %]</td> |
Lines 634-647
Link Here
|
634 |
</p> |
634 |
</p> |
635 |
[% END %] |
635 |
[% END %] |
636 |
</td> |
636 |
</td> |
637 |
<td class="number">[% order.rrp_tax_excluded | $Price | html %]</td> |
637 |
<td class="number">[% order.rrp_tax_excluded | $Price %]</td> |
638 |
<td class="number">[% order.ecost_tax_excluded | $Price | html %]</td> |
638 |
<td class="number">[% order.ecost_tax_excluded | $Price %]</td> |
639 |
<td class="number">[% order.rrp_tax_included | $Price | html %]</td> |
639 |
<td class="number">[% order.rrp_tax_included | $Price %]</td> |
640 |
<td class="number">[% order.ecost_tax_included | $Price | html %]</td> |
640 |
<td class="number">[% order.ecost_tax_included | $Price %]</td> |
641 |
<td class="number">[% order.replacementprice | $Price %]</td> |
641 |
<td class="number">[% order.replacementprice | $Price %]</td> |
642 |
<td class="number">[% order.quantity | html %]</td> |
642 |
<td class="number">[% order.quantity | html %]</td> |
643 |
<td class="number">[% order.total_tax_excluded | $Price | html %]</td> |
643 |
<td class="number">[% order.total_tax_excluded | $Price %]</td> |
644 |
<td class="number">[% order.total_tax_included | $Price | html %]</td> |
644 |
<td class="number">[% order.total_tax_included | $Price %]</td> |
645 |
<td class="number">[% order.tax_rate * 100 | html %]</td> |
645 |
<td class="number">[% order.tax_rate * 100 | html %]</td> |
646 |
<td class="number">[% order.tax_value | $Price %]</td> |
646 |
<td class="number">[% order.tax_value | $Price %]</td> |
647 |
<td>[% order.budget_name | html %] |
647 |
<td>[% order.budget_name | html %] |