Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8ecc78d6

Von Sven Schöling vor fast 13 Jahren hinzugefügt

  • ID 8ecc78d62b34b2c05ec6151e6e719a6a4df4f883
  • Vorgänger c6c0363c
  • Nachfolger 2d16e7a2

Besseres Handling von unvollständigen Preisgruppenimporten

Unterschiede anzeigen:

SL/Controller/CsvImport/Part.pm
if ($self->settings->{article_number_policy} eq 'update_prices') {
if ($entry->{part}) {
map { $entry->{part}->$_( $object->$_ ) } qw(sellprice listprice lastcost prices);
map { $entry->{part}->$_( $object->$_ ) } qw(sellprice listprice lastcost);
# merge prices
my %prices_by_pricegroup_id = map { $_->pricegroup->id => $_ } $entry->{part}->prices, $object->prices;
$entry->{part}->prices(grep { $_ } map { $prices_by_pricegroup_id{$_->id} } @{ $self->all_pricegroups });
push @{ $entry->{information} }, $::locale->text('Updating prices of existing entry in database');
$entry->{object_to_save} = $entry->{part};
}

Auch abrufbar als: Unified diff