Revision 77221586
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
templates/design40_webpages/order/tabs/basic_data.html | ||
---|---|---|
397 | 397 |
[% END %] |
398 | 398 |
<tr id="amount_row_id"> |
399 | 399 |
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "sales_quotation") -%] |
400 |
[%- SET marge_class = (SELF.order.marge_total < 0) ? 'plus0' : '' -%]
|
|
400 |
[%- SET marge_class = ((SELF.order.marge_total || 0) < 0) ? 'plus0' : '' -%]
|
|
401 | 401 |
<th colspan="2">[% 'Ertrag' | $T8 %]</th> |
402 | 402 |
<td colspan="2" class="numeric">[%- L.div_tag(SELF.order.marge_total_as_number, id='marge_total_id', class=marge_class) %]</td> |
403 | 403 |
<th colspan="2">[% 'Ertrag prozentual' | $T8 %]</th> |
templates/webpages/order/tabs/basic_data.html | ||
---|---|---|
392 | 392 |
</td> |
393 | 393 |
|
394 | 394 |
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "sales_quotation") -%] |
395 |
[%- SET marge_class = (SELF.order.marge_total < 0) ? 'plus0' : '' -%]
|
|
395 |
[%- SET marge_class = ((SELF.order.marge_total || 0) < 0) ? 'plus0' : '' -%]
|
|
396 | 396 |
<td> |
397 | 397 |
<table> |
398 | 398 |
<tr> |
Auch abrufbar als: Unified diff
Auftrags-Controller: HTML-Template: Warnung vermeiden 'Argument "" isn't numeric…'