CSV import
This commit is contained in:
parent
2bf58b1fe9
commit
ecf566a1f7
|
|
@ -6,6 +6,7 @@ import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
|||
import 'package:invoiceninja_flutter/ui/app/forms/app_dropdown_button.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/app_form.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/bool_dropdown_button.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/date_picker.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/forms/decorated_form_field.dart';
|
||||
import 'package:invoiceninja_flutter/ui/settings/generated_numbers_vm.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/edit_scaffold.dart';
|
||||
|
|
@ -231,7 +232,6 @@ class _GeneratedNumbersState extends State<GeneratedNumbers>
|
|||
settings.rebuild(
|
||||
(b) => b..sharedInvoiceQuoteCounter = value)),
|
||||
),
|
||||
/*
|
||||
AppDropdownButton(
|
||||
labelText: localization.resetCounter,
|
||||
value: settings.resetCounterFrequencyId,
|
||||
|
|
@ -264,7 +264,6 @@ class _GeneratedNumbersState extends State<GeneratedNumbers>
|
|||
onSelected: (value) => viewModel.onSettingsChanged(
|
||||
settings.rebuild((b) => b..resetCounterDate = value)),
|
||||
),
|
||||
*/
|
||||
],
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import 'package:invoiceninja_flutter/utils/files.dart';
|
|||
import 'package:invoiceninja_flutter/utils/formatting.dart';
|
||||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||
import 'package:invoiceninja_flutter/utils/platforms.dart';
|
||||
import 'package:invoiceninja_flutter/utils/strings.dart';
|
||||
|
||||
class ImportExport extends StatefulWidget {
|
||||
const ImportExport({
|
||||
|
|
@ -373,7 +372,7 @@ class __FileMapperState extends State<_FileMapper> {
|
|||
.then((dynamic result) {
|
||||
setState(() => _isLoading = false);
|
||||
|
||||
//showToast(localization.)
|
||||
showToast(localization.startedImport);
|
||||
}).catchError((dynamic error) {
|
||||
setState(() => _isLoading = false);
|
||||
showErrorDialog(context: context, message: '$error');
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
// STARTER: lang key - do not remove comment
|
||||
'started_import': 'Successfully started import',
|
||||
'duplicate_column_mapping': 'Duplicate column mapping',
|
||||
'uses_inclusive_taxes': 'Uses Inclusive Taxes',
|
||||
'is_amount_discount': 'Is Amount Discount',
|
||||
|
|
@ -5306,6 +5307,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
String get duplicateColumnMapping =>
|
||||
_localizedValues[localeCode]['duplicate_column_mapping'] ?? '';
|
||||
|
||||
String get startedImport => _localizedValues[localeCode]['started_import'] ?? '';
|
||||
|
||||
String lookup(String key) {
|
||||
final lookupKey = toSnakeCase(key);
|
||||
|
|
|
|||
Loading…
Reference in New Issue