Revision 598383b3
Von Bernd Bleßmann vor mehr als 4 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
934 | 934 |
my $data = { |
935 | 935 |
is_standard => $self->order->currency_id == $::instance_conf->get_currency_id, |
936 | 936 |
currency_name => $self->order->currency->name, |
937 |
exchangerate => $self->order->exchangerate_as_null_number, |
|
937 |
exchangerate => $self->order->daily_exchangerate_as_null_number,
|
|
938 | 938 |
}; |
939 | 939 |
|
940 | 940 |
$self->render(\SL::JSON::to_json($data), { type => 'json', process => 0 }); |
... | ... | |
1375 | 1375 |
|
1376 | 1376 |
my $form_orderitems = delete $::form->{order}->{orderitems}; |
1377 | 1377 |
my $form_periodic_invoices_config = delete $::form->{order}->{periodic_invoices_config}; |
1378 |
my $form_exchangerate_as_null_number = delete $::form->{order}->{exchangerate_as_null_number}; |
|
1379 | 1378 |
|
1380 | 1379 |
$order->assign_attributes(%{$::form->{order}}); |
1381 | 1380 |
|
... | ... | |
1384 | 1383 |
$periodic_invoices_config->assign_attributes(%$periodic_invoices_config_attrs); |
1385 | 1384 |
} |
1386 | 1385 |
|
1387 |
# set exchangerate after transdate and currency_id |
|
1388 |
$order->assign_attributes(exchangerate_as_null_number => $form_exchangerate_as_null_number) if $order->currency_id; |
|
1389 |
|
|
1390 | 1386 |
# remove deleted items |
1391 | 1387 |
$self->item_ids_to_delete([]); |
1392 | 1388 |
foreach my $idx (reverse 0..$#{$order->orderitems}) { |
Auch abrufbar als: Unified diff
Auftrags-Controller: Wechselkurs pro Beleg …
- Wechselkurs wird pro Beleg gespeichert
- Wechselkurs ist immer änderbar
- vorausgefüllt aus "alter" Tages-Wechselkurstabelle
Bezieht sich auch auf #135
Refs #135