Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7cac5eaa

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

  • ID 7cac5eaa6eb9d3236d1359f7bff8474d9960b64c
  • Vorgänger e70a89d2
  • Nachfolger c4a045af

Auftrags-Controller: Währung in make_order setzen

Unterschiede anzeigen:

SL/Controller/Order.pm
1364 1364
  # order here solves this problem.
1365 1365
  my $order;
1366 1366
  $order   = SL::DB::Order->new(id => $::form->{id})->load(with => [ 'orderitems', 'orderitems.part' ]) if $::form->{id};
1367
  $order ||= SL::DB::Order->new(orderitems => [],
1368
                                quotation  => (any { $self->type eq $_ } (sales_quotation_type(), request_quotation_type())));
1367
  $order ||= SL::DB::Order->new(orderitems  => [],
1368
                                quotation   => (any { $self->type eq $_ } (sales_quotation_type(), request_quotation_type())),
1369
                                currency_id => $::instance_conf->get_currency_id());
1369 1370

  
1370 1371
  my $cv_id_method = $self->cv . '_id';
1371 1372
  if (!$::form->{id} && $::form->{$cv_id_method}) {
......
1528 1529
sub recalc {
1529 1530
  my ($self) = @_;
1530 1531

  
1531
  $self->order->currency_id($::instance_conf->get_currency_id()) unless $self->order->currency_id;
1532

  
1533 1532
  my %pat = $self->order->calculate_prices_and_taxes();
1534 1533

  
1535 1534
  $self->{taxes} = [];

Auch abrufbar als: Unified diff