Bank accounts
This commit is contained in:
parent
d0f16d4a80
commit
c7939d1bc9
|
|
@ -184,6 +184,7 @@ abstract class ExpenseEntity extends Object
|
||||||
..date = convertDateTimeToSqlDate()
|
..date = convertDateTimeToSqlDate()
|
||||||
..documents.clear()
|
..documents.clear()
|
||||||
..transactionReference = ''
|
..transactionReference = ''
|
||||||
|
..transactionId = ''
|
||||||
..paymentTypeId = ''
|
..paymentTypeId = ''
|
||||||
..paymentDate = '');
|
..paymentDate = '');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
// Flutter imports:
|
// Flutter imports:
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
// Package imports:
|
// Package imports:
|
||||||
|
|
@ -205,7 +204,7 @@ class _SettingsListState extends State<SettingsList> {
|
||||||
section: kSettingsTemplatesAndReminders,
|
section: kSettingsTemplatesAndReminders,
|
||||||
viewModel: widget.viewModel,
|
viewModel: widget.viewModel,
|
||||||
),
|
),
|
||||||
if (showAll && !kReleaseMode)
|
if (showAll && supportsBankAccounts())
|
||||||
SettingsListTile(
|
SettingsListTile(
|
||||||
section: kSettingsBankAccounts,
|
section: kSettingsBankAccounts,
|
||||||
viewModel: widget.viewModel,
|
viewModel: widget.viewModel,
|
||||||
|
|
@ -574,7 +573,7 @@ class SettingsSearch extends StatelessWidget {
|
||||||
'late_fees',
|
'late_fees',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
if (!kReleaseMode)
|
if (supportsBankAccounts())
|
||||||
kSettingsBankAccounts: [
|
kSettingsBankAccounts: [
|
||||||
[
|
[
|
||||||
'bank_accounts',
|
'bank_accounts',
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@ bool supportsAppleOAuth() => kIsWeb || isApple();
|
||||||
// TODO remove this function
|
// TODO remove this function
|
||||||
bool supportsMicrosoftOAuth() => kIsWeb;
|
bool supportsMicrosoftOAuth() => kIsWeb;
|
||||||
|
|
||||||
|
// TODO remove this function
|
||||||
|
bool supportsBankAccounts() => !kReleaseMode;
|
||||||
|
|
||||||
bool isDesktopOS() => isMacOS() || isWindows() || isLinux();
|
bool isDesktopOS() => isMacOS() || isWindows() || isLinux();
|
||||||
|
|
||||||
bool isMobileOS() => isAndroid() || isIOS();
|
bool isMobileOS() => isAndroid() || isIOS();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue