Revision 03d66bba
Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
22 | 22 |
|
23 | 23 |
use SL::Helper::CreatePDF qw(:all); |
24 | 24 |
use SL::Helper::PrintOptions; |
25 |
use SL::Helper::ShippedQty; |
|
25 | 26 |
|
26 | 27 |
use SL::Controller::Helper::GetModels; |
27 | 28 |
|
... | ... | |
1466 | 1467 |
$item->active_discount_source($price_source->discount_from_source($item->active_discount_source)); |
1467 | 1468 |
} |
1468 | 1469 |
|
1470 |
if (any { $self->type eq $_ } (sales_order_type(), purchase_order_type())) { |
|
1471 |
# calculate shipped qtys here to prevent calling calculate for every item via the items method |
|
1472 |
SL::Helper::ShippedQty->new->calculate($self->order)->write_to_objects; |
|
1473 |
} |
|
1474 |
|
|
1469 | 1475 |
if ($self->order->number && $::instance_conf->get_webdav) { |
1470 | 1476 |
my $webdav = SL::Webdav->new( |
1471 | 1477 |
type => $self->type, |
Auch abrufbar als: Unified diff
Auftrags-Controller: gelieferte Menge in Auftragsposition anzeigen.