Fix vendor in POs
This commit is contained in:
parent
8ccd9c9d6e
commit
229ab00c3e
|
|
@ -292,8 +292,8 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
|
|||
vendorId: invoice.vendorId,
|
||||
vendorState: state.vendorState,
|
||||
onSelected: (vendor) {
|
||||
viewModel.onVendorChanged!(
|
||||
context, invoice, vendor as VendorEntity);
|
||||
viewModel.onVendorChanged!(context, invoice,
|
||||
vendor as VendorEntity?);
|
||||
},
|
||||
onAddPressed: (completer) => viewModel
|
||||
.onAddVendorPressed!(context, completer),
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ class InvoiceEditDetailsState extends State<InvoiceEditDetails> {
|
|||
vendorState: state.vendorState,
|
||||
onSelected: (vendor) {
|
||||
viewModel.onVendorChanged!(
|
||||
context, invoice, vendor as VendorEntity);
|
||||
context, invoice, vendor as VendorEntity?);
|
||||
},
|
||||
onAddPressed: (completer) =>
|
||||
viewModel.onAddVendorPressed!(context, completer),
|
||||
|
|
|
|||
Loading…
Reference in New Issue