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:
7525426
)
fix für 1731 - einheiten konvertierung sollte nicht abstürzen.
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 13 Oct 2011 12:03:30 +0000
(14:03 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 13 Oct 2011 12:03:30 +0000
(14:03 +0200)
SL/DO.pm
patch
|
blob
|
history
diff --git
a/SL/DO.pm
b/SL/DO.pm
index
17d896f
..
5b5cf1d
100644
(file)
--- a/
SL/DO.pm
+++ b/
SL/DO.pm
@@
-1099,7
+1099,7
@@
sub get_shipped_qty {
my $all_units = AM->retrieve_all_units();
foreach my $entry (@{ $entries }) {
- $entry->{qty} *=
$all_units->{$entry->{unit}}->{factor} / $all_units->{$entry->{partunit}}->{factor}
;
+ $entry->{qty} *=
AM->convert_unit($entry->{unit}, $entry->{partunit}, $all_units)
;
if (!$ship{$entry->{parts_id}}) {
$ship{$entry->{parts_id}} = $entry;