Revision 1428ab01
Von Thomas Heck vor etwa 12 Jahren hinzugefügt
SL/Controller/CsvImport/Part.pm | ||
---|---|---|
201 | 201 |
|
202 | 202 |
if ($self->settings->{article_number_policy} eq 'update_prices') { |
203 | 203 |
if ($entry->{part}) { |
204 |
map { $entry->{part}->$_( $object->$_ ) if defined $object->$_ } qw(sellprice listprice lastcost);
|
|
204 |
map { $entry->{part}->$_( $object->$_ ) if defined $object->$_ } qw(sellprice listprice lastcost); |
|
205 | 205 |
|
206 | 206 |
# merge prices |
207 | 207 |
my %prices_by_pricegroup_id = map { $_->pricegroup->id => $_ } $entry->{part}->prices, $object->prices; |
... | ... | |
210 | 210 |
push @{ $entry->{information} }, $::locale->text('Updating prices of existing entry in database'); |
211 | 211 |
$entry->{object_to_save} = $entry->{part}; |
212 | 212 |
} |
213 |
|
|
213 |
} elsif ( $self->settings->{article_number_policy} eq 'skip' ) { |
|
214 |
push(@{$entry->{errors}}, $::locale->text('Skipping due to existing entry in database')) if ( $entry->{part} ); |
|
214 | 215 |
} else { |
215 | 216 |
$object->partnumber('####') if $entry->{part}; |
216 | 217 |
} |
locale/de/all | ||
---|---|---|
1676 | 1676 |
'Single quotes' => 'Einfache Anführungszeichen', |
1677 | 1677 |
'Single values in item mode, cumulated values in invoice mode' => 'Einzelwerte im Artikelmodus, kumulierte Werte im Rechnungsmodus', |
1678 | 1678 |
'Skip' => 'Überspringen', |
1679 |
'Skip entry' => 'Eintrag überspringen', |
|
1680 |
'Skipping due to existing entry in database' => 'Übersprungen, wegen existierender Artikelnummer', |
|
1679 | 1681 |
'Skonto' => 'Skonto', |
1680 | 1682 |
'Skonto Terms' => 'Zahlungsziel Skonto', |
1681 | 1683 |
'Sold' => 'Verkauft', |
templates/webpages/csv_import/_form_parts.html | ||
---|---|---|
3 | 3 |
<tr> |
4 | 4 |
<th align="right">[%- LxERP.t8('Parts with existing part numbers') %]:</th> |
5 | 5 |
<td colspan="10"> |
6 |
[% opts = [ [ 'update_prices', LxERP.t8('Update prices of existing entries') ], [ 'insert_new', LxERP.t8('Insert with new part number') ] ] %] |
|
6 |
[% opts = [ [ 'update_prices', LxERP.t8('Update prices of existing entries') ], [ 'insert_new', LxERP.t8('Insert with new part number') ], [ 'skip', LxERP.t8('Skip entry') ] ] %]
|
|
7 | 7 |
[% L.select_tag('settings.article_number_policy', L.options_for_select(opts, default => SELF.profile.get('article_number_policy')), style => 'width: 300px') %] |
8 | 8 |
</td> |
9 | 9 |
</tr> |
Auch abrufbar als: Unified diff
CsvImport::Parts: Option zum Überspringen von Artikeln mit existierenden Nummern
implementiert #1965