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:
f85cd3e
)
AM nicht aus SL::DB::Object laden
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 21 Jun 2013 16:06:22 +0000
(18:06 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 25 Jun 2013 12:22:34 +0000
(14:22 +0200)
SL/DB/OrderItem.pm
patch
|
blob
|
history
diff --git
a/SL/DB/OrderItem.pm
b/SL/DB/OrderItem.pm
index
862a215
..
67bffd8
100644
(file)
--- a/
SL/DB/OrderItem.pm
+++ b/
SL/DB/OrderItem.pm
@@
-3,7
+3,6
@@
package SL::DB::OrderItem;
use strict;
use List::Util qw(sum);
-use SL::AM;
use SL::DB::MetaSetup::OrderItem;
use SL::DB::Manager::OrderItem;
@@
-36,6
+35,7
@@
sub shipped_qty {
my $d_orders = $self->order->linked_records(direction => 'to', to => 'SL::DB::DeliveryOrder');
my @doi = grep { $_->parts_id == $self->parts_id } map { $_->orderitems } @$d_orders;
+ require SL::AM;
return sum(map { AM->convert_unit($_->unit => $self->unit) * $_->qty } @doi);
}