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:
25729ef
)
ShippedQty: Auch bei short circuit chainen
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 27 Jul 2017 13:46:00 +0000
(15:46 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 31 Jul 2017 13:41:22 +0000
(15:41 +0200)
SL/Helper/ShippedQty.pm
patch
|
blob
|
history
diff --git
a/SL/Helper/ShippedQty.pm
b/SL/Helper/ShippedQty.pm
index
e9c8e4e
..
9775570
100644
(file)
--- a/
SL/Helper/ShippedQty.pm
+++ b/
SL/Helper/ShippedQty.pm
@@
-104,11
+104,11
@@
sub calculate {
die 'Need exactly one argument, either id, object or arrayref of ids or objects.' unless 2 == @_;
- return if !$data || ('ARRAY' eq ref $data && !@$data);
+ return
$self
if !$data || ('ARRAY' eq ref $data && !@$data);
$self->normalize_input($data);
- return unless @{ $self->oe_ids };
+ return
$self
unless @{ $self->oe_ids };
$self->calculate_item_links;
$self->calculate_fill_up if $self->fill_up;