my $form_orderitems = delete $::form->{order}->{orderitems};
my $form_periodic_invoices_config = delete $::form->{order}->{periodic_invoices_config};
+ my $exchangerate = delete $::form->{order}->{exchangerate};
$order->assign_attributes(%{$::form->{order}});
$periodic_invoices_config->assign_attributes(%$periodic_invoices_config_attrs);
}
+ # set exchangerate after transdate and currency_id
+ $order->assign_attributes(exchangerate => $exchangerate);
+
# remove deleted items
$self->item_ids_to_delete([]);
foreach my $idx (reverse 0..$#{$order->orderitems}) {