Include custom fields in product search
This commit is contained in:
parent
cd118fa110
commit
13d59a31b3
|
|
@ -660,14 +660,11 @@ class _InvoiceEditItemsDesktopState extends State<InvoiceEditItemsDesktop> {
|
|||
final productKey =
|
||||
product.productKey.toLowerCase();
|
||||
|
||||
if (company.showProductDetails &&
|
||||
product.notes
|
||||
.toLowerCase()
|
||||
.contains(filter)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (company.showProductDetails) {
|
||||
return product.matchesFilter(filter);
|
||||
} else {
|
||||
return productKey.contains(filter);
|
||||
}
|
||||
}).toList();
|
||||
|
||||
if (options.length == 1 &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue