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:
5f4bdff
)
SL::Helper::ShippedQty: chaining vervollständigt und dokumentiert
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 26 Jul 2017 11:42:53 +0000
(13:42 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 26 Jul 2017 11:43:46 +0000
(13:43 +0200)
SL/Helper/ShippedQty.pm
patch
|
blob
|
history
diff --git
a/SL/Helper/ShippedQty.pm
b/SL/Helper/ShippedQty.pm
index
13efcb5
..
3bc8ee1
100644
(file)
--- a/
SL/Helper/ShippedQty.pm
+++ b/
SL/Helper/ShippedQty.pm
@@
-225,6
+225,7
@@
sub write_to {
die "unknown reference '@{[ ref $obj ]}' for @{[ __PACKAGE__ ]}::write_to";
}
}
+ $self;
}
sub write_to_objects {
@@
-332,6
+333,9
@@
SL::Helper::ShippedQty - Algorithmic module for calculating shipped qty
# delivered by oe_id
my $delivered = $helper->delievered->{$oi->id};
+ # calculate and write_to can be chained:
+ my $helper = SL::Helper::ShippedQty->new->calculate($orders)->write_to_objects;
+
=head1 DESCRIPTION
This module encapsulates the algorithm needed to compute the shipped qty for