X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2Fform.html;h=9b8fd1a84bcbb67c47216666c0cdc03fca2eb4f2;hb=fb1a574bce8ee7a490206e97daea76dcf214c6db;hp=24af07e5b8706d68a1932b086f4853a9a78095a1;hpb=cd3150ed14f13bc1af071dd0f91015dd32360eae;p=kivitendo-erp.git diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html index 24af07e5b..9b8fd1a84 100644 --- a/templates/webpages/csv_import/form.html +++ b/templates/webpages/csv_import/form.html @@ -2,8 +2,7 @@ [%- USE LxERP %] [%- USE L %] [%- USE T8 %] - -
[% FORM.title %]
+

[% FORM.title %]

[%- INCLUDE 'common/flash.html' %] @@ -131,7 +130,12 @@ [% LxERP.t8("Assemblies can not be imported (yet). But the type column is used for sanity checks on price updates in order to prevent that articles with the wrong type will be updated.") %]

-[%- ELSIF SELF.type == 'orders' %] +[%- ELSIF SELF.type == 'inventories' %] +

+ [%- LxERP.t8('One of the columns "qty" or "target_qty" must be given. If "target_qty" is given, the quantity to transfer for each transfer will be calculate, so that the quantity for this part, warehouse and bin will result in the given "target_qty" after each transfer.') %] +

+ +[%- ELSIF SELF.type == 'orders' OR SELF.type == 'ar_transactions' %]

[1]: [% LxERP.t8('The column "datatype" must be present and must be at the same position / column in each data set. The values must be the row names (see settings) for order and item data respectively.') %] @@ -164,7 +168,7 @@ [%- LxERP.t8('Number Format') %]: - [% L.select_tag('settings.numberformat', ['1.000,00', '1000,00', '1,000.00', '1000.00'], default = SELF.profile.get('numberformat'), style = 'width: 300px') %] + [% L.select_tag('settings.numberformat', ['1.000,00', '1000,00', '1,000.00', '1000.00', "1'000.00"], default = SELF.profile.get('numberformat'), style = 'width: 300px') %] @@ -252,8 +256,14 @@ [%- INCLUDE 'csv_import/_form_customers_vendors.html' %] [%- ELSIF SELF.type == 'contacts' %] [%- INCLUDE 'csv_import/_form_contacts.html' %] +[%- ELSIF SELF.type == 'inventories' %] + [%- INCLUDE 'csv_import/_form_inventories.html' %] [%- ELSIF SELF.type == 'orders' %] [%- INCLUDE 'csv_import/_form_orders.html' %] +[%- ELSIF SELF.type == 'ar_transactions' %] + [%- INCLUDE 'csv_import/_form_artransactions.html' %] +[%- ELSIF SELF.type == 'bank_transactions' %] + [%- INCLUDE 'csv_import/_form_banktransactions.html' %] [%- END %] @@ -282,6 +292,38 @@


+[%- UNLESS SELF.worker.is_multiplexed %] +

[% 'Mappings (csv_import)' | $T8 %]

+ + + +
+[%- END %] [% L.submit_tag('action_test', LxERP.t8('Test and preview')) %] [% L.submit_tag('action_import', LxERP.t8('Import'), style='display:none') %] @@ -304,7 +346,14 @@ return true; alert('[% LxERP.t8('Please enter a profile name.') %]'); return false; - }) + }); + $('#add_empty_mapping_line').click(function(){ + $.get('controller.pl', { action: 'CsvImport/add_empty_mapping_line', 'profile.type': $('#profile_type').val() }, kivi.eval_json_result); + }); + $('#add_mapping_from_upload').click(function(){ + $.get('controller.pl?action_add_mapping_from_upload=1', $('form').serialize() , kivi.eval_json_result); + }); + $('#csv_import_mappings').on('click', '.remove_line', function(){ $(this).closest('tr').remove(); if (1==$('#csv_import_mappings tr:visible').length) $('#mapping_empty').show() }); }); -->