Add auto bill standard invoices
This commit is contained in:
parent
25455d4353
commit
a907d2525d
|
|
@ -826,6 +826,10 @@ abstract class SettingsEntity
|
|||
@BuiltValueField(wireName: 'auto_bill')
|
||||
String get autoBill;
|
||||
|
||||
@nullable
|
||||
@BuiltValueField(wireName: 'auto_bill_standard_invoices')
|
||||
bool get autoBillStandardInvoices;
|
||||
|
||||
@nullable
|
||||
@BuiltValueField(wireName: 'client_portal_allow_under_payment')
|
||||
bool get clientPortalAllowUnderPayment;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -96,8 +96,24 @@ class _PaymentSettingsState extends State<PaymentSettings> {
|
|||
children: <Widget>[
|
||||
FormCard(
|
||||
children: <Widget>[
|
||||
AppDropdownButton<bool>(
|
||||
blankValue: null,
|
||||
showBlank: true,
|
||||
labelText: localization.autoBillStandardInvoices,
|
||||
value: state.settingsUIState.isFiltered
|
||||
? settings.autoBillStandardInvoices
|
||||
: settings.autoBillStandardInvoices ?? false,
|
||||
onChanged: (dynamic value) => viewModel.onSettingsChanged(
|
||||
settings
|
||||
.rebuild((b) => b..autoBillStandardInvoices = value)),
|
||||
items: [
|
||||
DropdownMenuItem<bool>(
|
||||
child: Text(localization.enabled), value: true),
|
||||
DropdownMenuItem<bool>(
|
||||
child: Text(localization.off), value: false),
|
||||
]),
|
||||
AppDropdownButton<String>(
|
||||
labelText: localization.autoBill,
|
||||
labelText: localization.autoBillRecurringInvoices,
|
||||
value: settings.autoBill,
|
||||
onChanged: (dynamic value) => viewModel.onSettingsChanged(
|
||||
settings.rebuild((b) => b..autoBill = value)),
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
// STARTER: lang key - do not remove comment
|
||||
'auto_bill_standard_invoices': 'Auto Bill Standard Invoices',
|
||||
'auto_bill_recurring_invoices': 'Auto Bill Recurring Invoices',
|
||||
'email_alignment': 'Email Alignment',
|
||||
'pdf_preview_location': 'PDF Preview Location',
|
||||
'mailgun': 'Mailgun',
|
||||
|
|
@ -92993,6 +92995,15 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
_localizedValues[localeCode]['email_alignment'] ??
|
||||
_localizedValues['en']['email_alignment'];
|
||||
|
||||
String get autoBillStandardInvoices =>
|
||||
_localizedValues[localeCode]['auto_bill_standard_invoices'] ??
|
||||
_localizedValues['en']['auto_bill_standard_invoices'];
|
||||
|
||||
String get autoBillRecurringInvoices =>
|
||||
_localizedValues[localeCode]['auto_bill_recurring_invoices'] ??
|
||||
_localizedValues['en']['auto_bill_recurring_invoices'];
|
||||
|
||||
|
||||
// STARTER: lang field - do not remove comment
|
||||
|
||||
String lookup(String key) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue