Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5508a801

Von Tamino Steinert vor 1 Tag hinzugefügt

  • ID 5508a8012ed95a776a93b55a7069424eb4afa32b
  • Vorgänger f2bd1f3b
  • Nachfolger a5a87c23

FIX: S:C:Order: Artikelbesch. in Eingabe übersetzen und Text übernehmen

Unterschiede anzeigen:

SL/Controller/Order.pm
1024 1024

  
1025 1025
  my ($price_src, $discount_src) = SL::Model::Record->get_best_price_and_discount_source($record, $item, ignore_given => 0);
1026 1026

  
1027
  my $texts = get_part_texts($item->part, $self->order->language_id);
1028

  
1027 1029
  $self->js
1028 1030
    ->val     ('#add_item_unit',                $item->unit)
1029
    ->val     ('#add_item_description',         $item->part->description)
1031
    ->val     ('#add_item_description',         $texts->{description})
1030 1032
    ->val     ('#add_item_sellprice_as_number', '')
1031 1033
    ->attr    ('#add_item_sellprice_as_number', 'placeholder', $price_src->price_as_number)
1032 1034
    ->attr    ('#add_item_sellprice_as_number', 'title',       $price_src->source_description)
......
1953 1955
  # saved. Adding empty custom_variables to new orderitem here solves this problem.
1954 1956
  $new_attr{custom_variables} = [];
1955 1957

  
1956
  my $texts = get_part_texts($item->part, $record->language_id, description => $new_attr{description}, longdescription => $new_attr{longdescription});
1958
  my $texts = get_part_texts(
1959
    $item->part, $record->language_id,
1960
    description     => $new_attr{description},
1961
    longdescription => $new_attr{longdescription}
1962
  );
1963
  delete $texts->{description}     if $item->description;
1964
  delete $texts->{longdescription} if $item->longdescription;
1957 1965

  
1958 1966
  $item->assign_attributes(%new_attr, %{ $texts });
1959 1967

  

Auch abrufbar als: Unified diff