projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a768ad9
)
Neuerfassen von Artikeln, darf keinen Division by Zero Fehler werfen
author
Jan Büren
<jan@kivitendo.de>
Thu, 8 Apr 2021 08:25:00 +0000
(08:25 +0000)
committer
Jan Büren
<jan@kivitendo.de>
Thu, 8 Apr 2021 08:43:01 +0000
(10:43 +0200)
templates/webpages/part/_assembly.html
patch
|
blob
|
history
diff --git
a/templates/webpages/part/_assembly.html
b/templates/webpages/part/_assembly.html
index
d3eaded
..
bc32cf8
100644
(file)
--- a/
templates/webpages/part/_assembly.html
+++ b/
templates/webpages/part/_assembly.html
@@
-71,7
+71,11
@@
<td></td>
<td align="right">[% 'Margepercent' | $T8 %]:</td>
<td></td>
- <td class="numeric">[%- LxERP.format_amount(100 - (items_lastcost_sum / items_sellprice_sum * 100), 2, 0) %]% </td>
+ <td class="numeric">
+ [% IF items_sellprice_sum > 0 %]
+ [%- LxERP.format_amount(100 - (items_lastcost_sum / items_sellprice_sum * 100), 2, 0) %]
+ [% END %]
+ </td>
</tr>
<tr>
<td></td>