Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 035b4835

Von Felix Eichler vor mehr als 4 Jahren hinzugefügt

  • ID 035b4835c424c6893b5449555ce5489171704ba4
  • Vorgänger 0ed20721
  • Nachfolger 2e554890

exchangerate bei Order erst nach transdate und currency_id setzen

(cherry picked from commit 7d76676faf4c3a4d71fc5df449365374a9997995)
(cherry pick von odyn)

Unterschiede anzeigen:

SL/Controller/Order.pm
1372 1372

  
1373 1373
  my $form_orderitems               = delete $::form->{order}->{orderitems};
1374 1374
  my $form_periodic_invoices_config = delete $::form->{order}->{periodic_invoices_config};
1375
  my $exchangerate                  = delete $::form->{order}->{exchangerate};
1375 1376

  
1376 1377
  $order->assign_attributes(%{$::form->{order}});
1377 1378

  
......
1380 1381
    $periodic_invoices_config->assign_attributes(%$periodic_invoices_config_attrs);
1381 1382
  }
1382 1383

  
1384
  # set exchangerate after transdate and currency_id
1385
  $order->assign_attributes(exchangerate => $exchangerate);
1386

  
1383 1387
  # remove deleted items
1384 1388
  $self->item_ids_to_delete([]);
1385 1389
  foreach my $idx (reverse 0..$#{$order->orderitems}) {

Auch abrufbar als: Unified diff