Revision 023fab8d
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/DB/CsvImportProfile.pm | ||
---|---|---|
51 | 51 |
part_group_sep_char => '!', |
52 | 52 |
shoparticle_if_missing => '0', |
53 | 53 |
parts_type => 'part', |
54 |
default_buchungsgruppe => ($bugru ? $bugru->description : undef),
|
|
54 |
default_buchungsgruppe => ($bugru ? $bugru->id : undef),
|
|
55 | 55 |
apply_buchungsgruppe => 'all', |
56 | 56 |
); |
57 | 57 |
} else { |
templates/webpages/csv_import/_form_parts.html | ||
---|---|---|
50 | 50 |
<tr> |
51 | 51 |
<th align="right" valign="top">[%- LxERP.t8('Default buchungsgruppe') %]:</th> |
52 | 52 |
<td colspan="10" valign="top"> |
53 |
[% opts = L.options_for_select(SELF.all_buchungsgruppen, tilte => 'description', value => 'description', default => SELF.profile.get('default_buchungsgruppe')) %]
|
|
53 |
[% opts = L.options_for_select(SELF.all_buchungsgruppen, title => 'description', default => SELF.profile.get('default_buchungsgruppe')) %]
|
|
54 | 54 |
[% L.select_tag('settings.default_buchungsgruppe', opts, style => 'width: 300px') %] |
55 | 55 |
<br> |
56 | 56 |
[% opts = [ [ 'never', LxERP.t8('Do not set default buchungsgruppe') ], [ 'all', LxERP.t8('Apply to all parts') ], [ 'missing', LxERP.t8('Apply to parts without buchungsgruppe') ] ] %] |
Auch abrufbar als: Unified diff
Standard-Buchungsgruppe in CSV-Import-Profil via ID speichern