Revision 3e79972f
Von Jan Büren vor mehr als 3 Jahren hinzugefügt
SL/Helper/ShippedQty.pm | ||
---|---|---|
221 | 221 |
} elsif ('SL::DB::Order' eq ref $obj) { |
222 | 222 |
if (defined $obj->{orderitems}) { |
223 | 223 |
$self->write_to($obj->{orderitems}); |
224 |
$obj->{delivered} = all { $_->{delivered} } grep { !$_->{optional} || $_->{optional} == 0 } @{ $obj->{orderitems} };
|
|
224 |
$obj->{delivered} = all { $_->{delivered} } grep { !$_->{optional} } @{ $obj->{orderitems} }; |
|
225 | 225 |
} else { |
226 | 226 |
# don't force a load on items. just compute by oe_id directly |
227 | 227 |
$obj->{delivered} = $self->delivered->{$obj->id}; |
Auch abrufbar als: Unified diff
QS Bernd/Sven: Weniger Code und klarer
zu: c22e188b4d7aabd
und: 8453789b