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
# order here solves this problem.
my $order;
$order = SL::DB::Order->new(id => $::form->{id})->load(with => [ 'orderitems', 'orderitems.part' ]) if $::form->{id};
$order ||= SL::DB::Order->new(orderitems => [],
quotation => (any { $self->type eq $_ } (sales_quotation_type(), request_quotation_type())));
$order ||= SL::DB::Order->new(orderitems => [],
quotation => (any { $self->type eq $_ } (sales_quotation_type(), request_quotation_type())),
currency_id => $::instance_conf->get_currency_id());
my $cv_id_method = $self->cv . '_id';
if (!$::form->{id} && $::form->{$cv_id_method}) {
......
sub recalc {
my ($self) = @_;
$self->order->currency_id($::instance_conf->get_currency_id()) unless $self->order->currency_id;
my %pat = $self->order->calculate_prices_and_taxes();
$self->{taxes} = [];

Auch abrufbar als: Unified diff