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 =
|
final productKey =
|
||||||
product.productKey.toLowerCase();
|
product.productKey.toLowerCase();
|
||||||
|
|
||||||
if (company.showProductDetails &&
|
if (company.showProductDetails) {
|
||||||
product.notes
|
return product.matchesFilter(filter);
|
||||||
.toLowerCase()
|
} else {
|
||||||
.contains(filter)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return productKey.contains(filter);
|
return productKey.contains(filter);
|
||||||
|
}
|
||||||
}).toList();
|
}).toList();
|
||||||
|
|
||||||
if (options.length == 1 &&
|
if (options.length == 1 &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue