Purchase orders
This commit is contained in:
parent
ce32271c14
commit
5099babcfe
|
|
@ -392,11 +392,13 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
|
|||
validator: (String val) => val.trim().isEmpty
|
||||
? AppLocalization.of(context).pleaseSelectADate
|
||||
: null,
|
||||
labelText: entityType == EntityType.credit
|
||||
? localization.creditDate
|
||||
: entityType == EntityType.quote
|
||||
? localization.quoteDate
|
||||
: localization.invoiceDate,
|
||||
labelText: entityType == EntityType.purchaseOrder
|
||||
? localization.purchaseOrderDate
|
||||
: entityType == EntityType.credit
|
||||
? localization.creditDate
|
||||
: entityType == EntityType.quote
|
||||
? localization.quoteDate
|
||||
: localization.invoiceDate,
|
||||
selectedDate: invoice.date,
|
||||
onSelected: (date, _) {
|
||||
viewModel.onChanged(
|
||||
|
|
|
|||
|
|
@ -273,11 +273,13 @@ class InvoiceEditDetailsState extends State<InvoiceEditDetails> {
|
|||
validator: (String val) => val.trim().isEmpty
|
||||
? AppLocalization.of(context).pleaseSelectADate
|
||||
: null,
|
||||
labelText: widget.entityType == EntityType.credit
|
||||
? localization.creditDate
|
||||
: widget.entityType == EntityType.quote
|
||||
? localization.quoteDate
|
||||
: localization.invoiceDate,
|
||||
labelText: widget.entityType == EntityType.purchaseOrder
|
||||
? localization.purchaseOrderDate
|
||||
: widget.entityType == EntityType.credit
|
||||
? localization.creditDate
|
||||
: widget.entityType == EntityType.quote
|
||||
? localization.quoteDate
|
||||
: localization.invoiceDate,
|
||||
selectedDate: invoice.date,
|
||||
onSelected: (date, _) {
|
||||
viewModel.onChanged(invoice.rebuild((b) => b..date = date));
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
// STARTER: lang key - do not remove comment
|
||||
'purchase_order_date': 'Purchase Order Date',
|
||||
'converted_to_expense': 'Successfully converted to expense',
|
||||
'converted_to_expenses': 'Successfully converted to expenses',
|
||||
'convert_to_expense': 'Convert to Expense',
|
||||
|
|
@ -70943,6 +70944,11 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
_localizedValues[localeCode]['converted_to_expenses'] ??
|
||||
_localizedValues['en']['converted_to_expenses'];
|
||||
|
||||
String get purchaseOrderDate =>
|
||||
_localizedValues[localeCode]['purchase_order_date'] ??
|
||||
_localizedValues['en']['purchase_order_date'];
|
||||
|
||||
|
||||
// STARTER: lang field - do not remove comment
|
||||
|
||||
String lookup(String key) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue