projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Testfall: Erzeugnis fertigen aufm Mond, aber Einzelteile im Lager Erde
[kivitendo-erp.git]
/
SL
/
DB
/
Unit.pm
diff --git
a/SL/DB/Unit.pm
b/SL/DB/Unit.pm
index
f5f1bc1
..
508aa74
100644
(file)
--- a/
SL/DB/Unit.pm
+++ b/
SL/DB/Unit.pm
@@
-57,7
+57,7
@@
sub convert_to {
my $my_base_factor = $self->base_factor || 1;
my $other_base_factor = $other_unit->base_factor || 1;
- return
$qty
* $my_base_factor / $other_base_factor;
+ return
($qty // 0)
* $my_base_factor / $other_base_factor;
}
sub is_time_based {