Revision 314f8fd6
Von Sven Schöling vor etwa 3 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
1161 | 1161 |
# order here solves this problem. |
1162 | 1162 |
my $order; |
1163 | 1163 |
$order = SL::DB::DeliveryOrder->new(id => $::form->{id})->load(with => [ 'orderitems', 'orderitems.part' ]) if $::form->{id}; |
1164 |
$order ||= SL::DB::DeliveryOrder->new(orderitems => [], currency_id => $::instance_conf->get_currency_id(), order_type => $self->type_data->validate_type($::form->{type}));
|
|
1164 |
$order ||= SL::DB::DeliveryOrder->new(orderitems => [], currency_id => $::instance_conf->get_currency_id(), order_type => $self->type_data->validate($::form->{type})); |
|
1165 | 1165 |
|
1166 | 1166 |
my $cv_id_method = $self->cv . '_id'; |
1167 | 1167 |
if (!$::form->{id} && $::form->{$cv_id_method}) { |
Auch abrufbar als: Unified diff
DeliveryOrder: fix validate on save