Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c4a045af

Von Bernd Bleßmann vor mehr als 4 Jahren hinzugefügt

  • ID c4a045af6606109317782780e0caafa48c1e7895
  • Vorgänger 7cac5eaa
  • Nachfolger 9fda7972

Auftrags-Controller: Wechselkurs: Kosmetik / POD update

Unterschiede anzeigen:

SL/Controller/Order.pm
930 930

  
931 931
sub action_update_exchangerate {
932 932
  my ($self) = @_;
933
  my $data = {};
934 933

  
935
  $data = {
934
  my $data = {
936 935
    is_standard   => $self->order->currency_id == $::instance_conf->get_currency_id,
937 936
    currency_name => $self->order->currency->name,
938 937
    exchangerate  => $self->order->exchangerate_as_null_number,
......
1374 1373
    setup_order_from_cv($order);
1375 1374
  }
1376 1375

  
1377
  my $form_orderitems               = delete $::form->{order}->{orderitems};
1378
  my $form_periodic_invoices_config = delete $::form->{order}->{periodic_invoices_config};
1379
  my $exchangerate_as_null_number   = delete $::form->{order}->{exchangerate_as_null_number};
1376
  my $form_orderitems                  = delete $::form->{order}->{orderitems};
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};
1380 1379

  
1381 1380
  $order->assign_attributes(%{$::form->{order}});
1382 1381

  
......
1386 1385
  }
1387 1386

  
1388 1387
  # set exchangerate after transdate and currency_id
1389
  $order->assign_attributes(exchangerate_as_null_number => $exchangerate_as_null_number) if $order->currency_id;
1388
  $order->assign_attributes(exchangerate_as_null_number => $form_exchangerate_as_null_number) if $order->currency_id;
1390 1389

  
1391 1390
  # remove deleted items
1392 1391
  $self->item_ids_to_delete([]);
......
2125 2124

  
2126 2125
=item * testing
2127 2126

  
2128
=item * currency
2129

  
2130 2127
=item * credit limit
2131 2128

  
2132 2129
=item * more workflows (quotation, rfq)

Auch abrufbar als: Unified diff