Tax model
This commit is contained in:
parent
8b9e5b7802
commit
07c132c0fe
|
|
@ -1,7 +1,6 @@
|
|||
// Flutter imports:
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:invoiceninja_flutter/constants.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
|
||||
// Package imports:
|
||||
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
||||
|
|
@ -148,6 +147,7 @@ class _TaxSettingsState extends State<TaxSettings> {
|
|||
),
|
||||
),
|
||||
FormCard(
|
||||
isLast: true,
|
||||
children: [
|
||||
BoolDropdownButton(
|
||||
iconData: MdiIcons.calculator,
|
||||
|
|
@ -158,6 +158,14 @@ class _TaxSettingsState extends State<TaxSettings> {
|
|||
helpLabel: localization.calculateTaxesHelp,
|
||||
),
|
||||
if (company.calculateTaxes) ...[
|
||||
/*
|
||||
DecoratedFormField(
|
||||
keyboardType: TextInputType.text,
|
||||
enabled: false,
|
||||
label: localization.version,
|
||||
initialValue: taxData.version,
|
||||
),
|
||||
*/
|
||||
AppDropdownButton<String>(
|
||||
labelText: localization.sellerSubregion,
|
||||
value: taxData.sellerSubregion,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
// STARTER: lang key - do not remove comment
|
||||
'version': 'version',
|
||||
'seller_subregion': 'Seller Subregion',
|
||||
'calculate_taxes': 'Calculate Taxes',
|
||||
'calculate_taxes_help':
|
||||
|
|
@ -98323,6 +98324,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
_localizedValues[localeCode]['seller_subregion'] ??
|
||||
_localizedValues['en']['seller_subregion'];
|
||||
|
||||
String get version =>
|
||||
_localizedValues[localeCode]['version'] ??
|
||||
_localizedValues['en']['version'];
|
||||
|
||||
// STARTER: lang field - do not remove comment
|
||||
|
||||
String lookup(String key) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue