Revision 043285c8
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
1798 | 1798 |
} |
1799 | 1799 |
|
1800 | 1800 |
if (any { $self->type eq $_ } (sales_order_type(), purchase_order_type())) { |
1801 |
# calculate shipped qtys here to prevent calling calculate for every item via the items method |
|
1802 |
SL::Helper::ShippedQty->new->calculate($self->order)->write_to_objects; |
|
1801 |
# Calculate shipped qtys here to prevent calling calculate for every item via the items method. |
|
1802 |
# Do not use write_to_objects to prevent order->delivered to be set, because this should be |
|
1803 |
# the value from db, which can be set manually or is set when linked delivery orders are saved. |
|
1804 |
SL::Helper::ShippedQty->new->calculate($self->order)->write_to(\@{$self->order->items}); |
|
1803 | 1805 |
} |
1804 | 1806 |
|
1805 | 1807 |
if ($self->order->number && $::instance_conf->get_webdav) { |
Auch abrufbar als: Unified diff
Auftrag-Controller: Aufträge manuell auf nicht-/geliefert setzen können.