Revision ae47b240
Von Kivitendo Admin vor etwa 10 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
27 | 27 |
use Rose::Object::MakeMethods::Generic |
28 | 28 |
( |
29 | 29 |
scalar => [ qw(type profile file all_profiles all_charsets sep_char all_sep_chars quote_char all_quote_chars escape_char all_escape_chars all_buchungsgruppen all_units |
30 |
import_status errors headers raw_data_headers info_headers data num_imported num_importable displayable_columns file) ], |
|
30 |
import_status errors headers raw_data_headers info_headers data num_imported num_importable displayable_columns file all_taxzones) ],
|
|
31 | 31 |
'scalar --get_set_init' => [ qw(worker task_server) ], |
32 | 32 |
'array' => [ |
33 | 33 |
progress_tracker => { }, |
... | ... | |
267 | 267 |
: $self->type eq 'orders' ? $::locale->text('CSV import: orders') |
268 | 268 |
: die; |
269 | 269 |
|
270 |
if ($self->{type} eq 'customers_vendors' or $self->{type} eq 'orders' ) { |
|
271 |
$self->all_taxzones(SL::DB::Manager::TaxZone->get_all_sorted(query => [ obsolete => 0 ])); |
|
272 |
}; |
|
273 |
|
|
270 | 274 |
if ($self->{type} eq 'parts') { |
271 | 275 |
$self->all_buchungsgruppen(SL::DB::Manager::Buchungsgruppe->get_all_sorted); |
272 | 276 |
$self->all_units(SL::DB::Manager::Unit->get_all_sorted); |
Auch abrufbar als: Unified diff
CsvImport Taxzone für CustomerVendor und Order
check_taxzone aus Order nach CsvImport/Helper/Consistency.pm ausgelagert
und um die Option take_default für CustomerVendor Import erweitert.
Behebt Ticket 9.