Revision 9d6a2ef2
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/Controller/CsvImport/Base.pm | ||
---|---|---|
296 | 296 |
foreach my $entry (@{ $data }) { |
297 | 297 |
next if @{ $entry->{errors} }; |
298 | 298 |
|
299 |
if (!$entry->{object}->save) { |
|
299 |
my $object = $entry->{object_to_save} || $entry->{object}; |
|
300 |
|
|
301 |
if (!$object->save) { |
|
300 | 302 |
push @{ $entry->{errors} }, $::locale->text('Error when saving: #1', $entry->{object}->db->error); |
301 | 303 |
} else { |
302 | 304 |
$self->controller->num_imported($self->controller->num_imported + 1); |
SL/Controller/CsvImport/Part.pm | ||
---|---|---|
192 | 192 |
|
193 | 193 |
if ($self->settings->{article_number_policy} eq 'update_prices') { |
194 | 194 |
if ($entry->{part}) { |
195 |
map { $object->$_( $entry->{part}->$_ ) } qw(sellprice listprice lastcost);
|
|
195 |
map { $entry->{part}->$_( $object->$_ ) } qw(sellprice listprice lastcost min_sellprice);
|
|
196 | 196 |
push @{ $entry->{information} }, $::locale->text('Updating prices of existing entry in database'); |
197 | 197 |
$entry->{object_to_save} = $entry->{part}; |
198 | 198 |
} |
Auch abrufbar als: Unified diff
Preisaktualisierung bestehender Artikel