Include custom fields in product search

This commit is contained in:
Hillel Coren 2024-01-17 13:39:04 +02:00
parent cd118fa110
commit 13d59a31b3
1 changed files with 4 additions and 7 deletions

View File

@ -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 &&