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:
1e7d8e3
)
Bug 1520: Division by zero Fehler
author
G. Richardson
<information@lx-office-hosting.de>
Tue, 21 Dec 2010 12:07:59 +0000
(13:07 +0100)
committer
G. Richardson
<information@lx-office-hosting.de>
Tue, 21 Dec 2010 12:07:59 +0000
(13:07 +0100)
verhindern, daß Preisfaktor 0 ist
SL/IS.pm
patch
|
blob
|
history
diff --git
a/SL/IS.pm
b/SL/IS.pm
index
5909233
..
f9f8046
100644
(file)
--- a/
SL/IS.pm
+++ b/
SL/IS.pm
@@
-1277,7
+1277,7
@@
sub cogs {
# total expenses and inventory
# sellprice is the cost of the item
- my $linetotal = $form->round_amount(($ref->{sellprice} * $qty) / (
$ref->{price_factor}
* ( $basefactor || 1 )), 2);
+ my $linetotal = $form->round_amount(($ref->{sellprice} * $qty) / (
($ref->{price_factor} ̣|| 1)
* ( $basefactor || 1 )), 2);
if (!$main::eur) {
$ref->{expense_accno} = ($form->{"expense_accno_$row"}) ? $form->{"expense_accno_$row"} : $ref->{expense_accno};