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:
b0e5852
)
Möglicher Division by zero abgefangen.
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 4 Sep 2009 11:42:09 +0000
(13:42 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 4 Sep 2009 11:42:09 +0000
(13:42 +0200)
Fix für Bug 1051.
bin/mozilla/io.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/io.pl
b/bin/mozilla/io.pl
index
7d24943
..
25427f7
100644
(file)
--- a/
bin/mozilla/io.pl
+++ b/
bin/mozilla/io.pl
@@
-262,7
+262,7
@@
sub display_row {
if ($form->{"id_$i"}) {
my $ship_qty = $form->{"ship_$i"} * 1;
$ship_qty *= $all_units->{$form->{"partunit_$i"}}->{factor};
- $ship_qty /=
$all_units->{$form->{"unit_$i"}}->{factor}
;
+ $ship_qty /=
( $all_units->{$form->{"unit_$i"}}->{factor} || 1 )
;
$column_data{ship} = $form->format_amount(\%myconfig, $form->round_amount($ship_qty, 2) * 1) . ' ' . $form->{"unit_$i"};
}