Revision 27649370
Von Sven Schöling vor etwa 3 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
36 | 36 |
use SL::Helper::UserPreferences::UpdatePositions; |
37 | 37 |
|
38 | 38 |
use SL::Controller::Helper::GetModels; |
39 |
use SL::Controller::DeliveryOrder::TypeData; |
|
39 |
use SL::Controller::DeliveryOrder::TypeData qw(:types);
|
|
40 | 40 |
|
41 | 41 |
use List::Util qw(first sum0); |
42 | 42 |
use List::UtilsBy qw(sort_by uniq_by); |
... | ... | |
1576 | 1576 |
if ($::form->{converted_from_oe_id}) { |
1577 | 1577 |
my @converted_from_oe_ids = split ' ', $::form->{converted_from_oe_id}; |
1578 | 1578 |
foreach my $converted_from_oe_id (@converted_from_oe_ids) { |
1579 |
my $src = SL::DB::DeliveryOrder->new(id => $converted_from_oe_id)->load;
|
|
1580 |
$src->update_attributes(closed => 1) if $src->type =~ /_quotation$/; |
|
1579 |
my $src = SL::DB::Order->new(id => $converted_from_oe_id)->load; |
|
1580 |
$src->update_attributes(closed => 1) if $src->type =~ /_quotation$/ && $self->order->is_type(PURCHASE_DELIVERY_ORDER_TYPE);
|
|
1581 | 1581 |
$src->link_to_record($self->order); |
1582 | 1582 |
} |
1583 | 1583 |
if (scalar @{ $::form->{converted_from_orderitems_ids} || [] }) { |
Auch abrufbar als: Unified diff
DeliveryOrder: record links beim Speichern setzen