Revision c37da034
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/DB/Order.pm | ||
---|---|---|
150 | 150 |
} |
151 | 151 |
|
152 | 152 |
sub convert_to_delivery_order { |
153 |
my ($self, %params) = @_;
|
|
153 |
my ($self, @args) = @_;
|
|
154 | 154 |
|
155 | 155 |
my ($delivery_order, $custom_shipto); |
156 | 156 |
if (!$self->db->with_transaction(sub { |
157 | 157 |
require SL::DB::DeliveryOrder; |
158 |
($delivery_order, $custom_shipto) = SL::DB::DeliveryOrder->new_from($self, %params);
|
|
158 |
($delivery_order, $custom_shipto) = SL::DB::DeliveryOrder->new_from($self, @args);
|
|
159 | 159 |
$delivery_order->save; |
160 | 160 |
$custom_shipto->save if $custom_shipto; |
161 | 161 |
$self->link_to_record($delivery_order); |
Auch abrufbar als: Unified diff
SL::DB::DeliveryOrder->new_from: Optionen zum Weglassen von Positionen mit Menge 0