Revision 96ddb932
Von Sven Schöling vor mehr als 7 Jahren hinzugefügt
SL/Helper/ShippedQty.pm | ||
---|---|---|
104 | 104 |
|
105 | 105 |
die 'Need exactly one argument, either id, object or arrayref of ids or objects.' unless 2 == @_; |
106 | 106 |
|
107 |
return $self if !$data || ('ARRAY' eq ref $data && !@$data); |
|
108 |
|
|
109 | 107 |
$self->normalize_input($data); |
110 | 108 |
|
111 | 109 |
return $self unless @{ $self->oe_ids }; |
... | ... | |
235 | 233 |
sub write_to_objects { |
236 | 234 |
my ($self) = @_; |
237 | 235 |
|
236 |
return unless @{ $self->oe_ids }; |
|
237 |
|
|
238 | 238 |
die 'Can only use write_to_objects, when calculate was called with objects. Use write_to instead.' unless $self->objects_or_ids; |
239 | 239 |
|
240 | 240 |
$self->write_to($self->objects); |
Auch abrufbar als: Unified diff
ShippedQty: Chaining bei Aufruf mit leerem Array