Hide credit.due_date
This commit is contained in:
parent
4870314df6
commit
05459cc496
|
|
@ -235,11 +235,10 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
|
||||||
.onChanged(invoice.rebuild((b) => b..date = date));
|
.onChanged(invoice.rebuild((b) => b..date = date));
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
if (widget.entityType != EntityType.credit)
|
||||||
DatePicker(
|
DatePicker(
|
||||||
allowClearing: true,
|
allowClearing: true,
|
||||||
labelText: widget.entityType == EntityType.credit
|
labelText: widget.entityType == EntityType.quote
|
||||||
? localization.appliedDate
|
|
||||||
: widget.entityType == EntityType.quote
|
|
||||||
? localization.validUntil
|
? localization.validUntil
|
||||||
: localization.dueDate,
|
: localization.dueDate,
|
||||||
selectedDate: invoice.dueDate,
|
selectedDate: invoice.dueDate,
|
||||||
|
|
|
||||||
|
|
@ -170,15 +170,15 @@ class InvoiceEditDetailsState extends State<InvoiceEditDetails> {
|
||||||
viewModel.onChanged(invoice.rebuild((b) => b..date = date));
|
viewModel.onChanged(invoice.rebuild((b) => b..date = date));
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
if (widget.entityType != EntityType.credit)
|
||||||
DatePicker(
|
DatePicker(
|
||||||
labelText: widget.entityType == EntityType.credit
|
labelText: widget.entityType == EntityType.quote
|
||||||
? localization.appliedDate
|
|
||||||
: widget.entityType == EntityType.quote
|
|
||||||
? localization.validUntil
|
? localization.validUntil
|
||||||
: localization.dueDate,
|
: localization.dueDate,
|
||||||
selectedDate: invoice.dueDate,
|
selectedDate: invoice.dueDate,
|
||||||
onSelected: (date) {
|
onSelected: (date) {
|
||||||
viewModel.onChanged(invoice.rebuild((b) => b..dueDate = date));
|
viewModel
|
||||||
|
.onChanged(invoice.rebuild((b) => b..dueDate = date));
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
|
|
|
||||||
|
|
@ -53,9 +53,7 @@ class InvoiceOverview extends StatelessWidget {
|
||||||
];
|
];
|
||||||
|
|
||||||
String dueDateField = InvoiceFields.dueDate;
|
String dueDateField = InvoiceFields.dueDate;
|
||||||
if (invoice.subEntityType == EntityType.credit) {
|
if (invoice.subEntityType == EntityType.quote) {
|
||||||
dueDateField = CreditFields.appliedDate;
|
|
||||||
} else if (invoice.subEntityType == EntityType.quote) {
|
|
||||||
dueDateField = QuoteFields.validUntil;
|
dueDateField = QuoteFields.validUntil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
'recurring_tasks': 'Recurring Tasks',
|
'recurring_tasks': 'Recurring Tasks',
|
||||||
'recurring_expenses': 'Recurring Expenses',
|
'recurring_expenses': 'Recurring Expenses',
|
||||||
'account_management': 'Account Management',
|
'account_management': 'Account Management',
|
||||||
'applied_date': 'Applied Date',
|
|
||||||
'credit_date': 'Credit Date',
|
'credit_date': 'Credit Date',
|
||||||
'credit': 'Credit',
|
'credit': 'Credit',
|
||||||
'credits': 'Credits',
|
'credits': 'Credits',
|
||||||
|
|
@ -32823,8 +32822,6 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
|
|
||||||
String get creditDate => _localizedValues[localeCode]['credit_date'];
|
String get creditDate => _localizedValues[localeCode]['credit_date'];
|
||||||
|
|
||||||
String get appliedDate => _localizedValues[localeCode]['applied_date'];
|
|
||||||
|
|
||||||
String get accountManagement =>
|
String get accountManagement =>
|
||||||
_localizedValues[localeCode]['account_management'];
|
_localizedValues[localeCode]['account_management'];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue