diff --git a/lib/ui/expense/edit/expense_edit_settings.dart b/lib/ui/expense/edit/expense_edit_settings.dart index 3a1eaabda03..3edb0141b1b 100644 --- a/lib/ui/expense/edit/expense_edit_settings.dart +++ b/lib/ui/expense/edit/expense_edit_settings.dart @@ -1,7 +1,10 @@ import 'package:flutter/material.dart'; +import 'package:flutter_redux/flutter_redux.dart'; import 'package:invoiceninja_flutter/constants.dart'; import 'package:invoiceninja_flutter/data/models/entities.dart'; import 'package:invoiceninja_flutter/data/models/static/currency_model.dart'; +import 'package:invoiceninja_flutter/redux/app/app_state.dart'; +import 'package:invoiceninja_flutter/redux/settings/settings_actions.dart'; import 'package:invoiceninja_flutter/ui/app/entity_dropdown.dart'; import 'package:invoiceninja_flutter/ui/app/forms/bool_dropdown_button.dart'; import 'package:invoiceninja_flutter/ui/app/forms/date_picker.dart'; @@ -293,7 +296,21 @@ class ExpenseEditSettingsState extends State { ) : null, children: company.numberOfItemTaxRates == 0 - ? [Text(localization.expenseTaxHelp)] + ? [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Flexible(child: Text(localization.expenseTaxHelp)), + OutlinedButton( + onPressed: () { + final store = StoreProvider.of(context); + store.dispatch( + ViewSettings(section: kSettingsTaxSettings)); + }, + child: Text(localization.settings)) + ], + ) + ] : [ BoolDropdownButton( label: localization.enterTaxes,