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 =
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);
}
return productKey.contains(filter);
}).toList();
if (options.length == 1 &&