Code cleanup
This commit is contained in:
parent
9eb4ad2019
commit
65a85b7afe
|
|
@ -510,7 +510,6 @@ class _EmailSettingsState extends State<EmailSettings> {
|
||||||
onChanged: (value) => viewModel.onSettingsChanged(
|
onChanged: (value) => viewModel.onSettingsChanged(
|
||||||
settings.rebuild((b) => b..ublEmailAttachment = value)),
|
settings.rebuild((b) => b..ublEmailAttachment = value)),
|
||||||
),
|
),
|
||||||
if (supportsLatestFeatures('5.6.0'))
|
|
||||||
BoolDropdownButton(
|
BoolDropdownButton(
|
||||||
label: localization.enableEInvoice,
|
label: localization.enableEInvoice,
|
||||||
value: settings.enableEInvoice,
|
value: settings.enableEInvoice,
|
||||||
|
|
|
||||||
|
|
@ -428,7 +428,7 @@ class SettingsSearch extends StatelessWidget {
|
||||||
[
|
[
|
||||||
'tax_settings',
|
'tax_settings',
|
||||||
'inclusive_taxes',
|
'inclusive_taxes',
|
||||||
if (supportsLatestFeatures('5.6.0')) 'calculate_taxes#2023-04-26',
|
'calculate_taxes#2023-06-11',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
kSettingsTaxRates: [
|
kSettingsTaxRates: [
|
||||||
|
|
@ -624,7 +624,7 @@ class SettingsSearch extends StatelessWidget {
|
||||||
'mailgun#2023-01-11',
|
'mailgun#2023-01-11',
|
||||||
'email_alignment#2023-01-17',
|
'email_alignment#2023-01-17',
|
||||||
'show_email_footer#2023-01-17',
|
'show_email_footer#2023-01-17',
|
||||||
if (supportsLatestFeatures('5.6.0')) 'enable_e_invoice#2023-04-27,'
|
'enable_e_invoice#2023-06-11,'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
kSettingsTemplatesAndReminders: [
|
kSettingsTemplatesAndReminders: [
|
||||||
|
|
|
||||||
|
|
@ -160,8 +160,7 @@ class _TaxSettingsState extends State<TaxSettings> {
|
||||||
onPressed: () => viewModel.onConfigureRatesPressed(context),
|
onPressed: () => viewModel.onConfigureRatesPressed(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!state.settingsUIState.isFiltered &&
|
if (!state.settingsUIState.isFiltered)
|
||||||
supportsLatestFeatures('5.6.0'))
|
|
||||||
FormCard(
|
FormCard(
|
||||||
isLast: true,
|
isLast: true,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue