sub action_update_exchangerate {
my ($self) = @_;
- my $data = {};
- $data = {
+ my $data = {
is_standard => $self->order->currency_id == $::instance_conf->get_currency_id,
currency_name => $self->order->currency->name,
exchangerate => $self->order->exchangerate_as_null_number,
setup_order_from_cv($order);
}
- my $form_orderitems = delete $::form->{order}->{orderitems};
- my $form_periodic_invoices_config = delete $::form->{order}->{periodic_invoices_config};
- my $exchangerate_as_null_number = delete $::form->{order}->{exchangerate_as_null_number};
+ my $form_orderitems = delete $::form->{order}->{orderitems};
+ my $form_periodic_invoices_config = delete $::form->{order}->{periodic_invoices_config};
+ my $form_exchangerate_as_null_number = delete $::form->{order}->{exchangerate_as_null_number};
$order->assign_attributes(%{$::form->{order}});
}
# set exchangerate after transdate and currency_id
- $order->assign_attributes(exchangerate_as_null_number => $exchangerate_as_null_number) if $order->currency_id;
+ $order->assign_attributes(exchangerate_as_null_number => $form_exchangerate_as_null_number) if $order->currency_id;
# remove deleted items
$self->item_ids_to_delete([]);
=item * testing
-=item * currency
-
=item * credit limit
=item * more workflows (quotation, rfq)