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