diff --git a/changelog/77_UNRELEASED_xxxx-xx-xx.md b/changelog/77_UNRELEASED_xxxx-xx-xx.md index f57d766c..5d6ed7f3 100644 --- a/changelog/77_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/77_UNRELEASED_xxxx-xx-xx.md @@ -19,6 +19,7 @@ - => Quick video demo (using a Barcode Laser Scanner): https://www.youtube.com/watch?v=-moXPA-VvGc - => Quick video demo (using Browser Camera Barcode Scanning): https://www.youtube.com/watch?v=veezFX4X1JU - Optimized that when moving a product to a freezer location (so when freezing it) the due date will no longer be replaced when the product option "Default due days after freezing" is set to `0` +- Product barcode matching is now case-insensitive - Added a new column "Product picture" on the products list (master data) page (hidden by default) - Fixed that a once set quantity unit on a product barcode could not be removed on edit - Fixed that when consuming a specific stock entry which is opened, and which originated from a before partly opened stock entry, the unopened one was wrongly consume instead diff --git a/public/viewjs/components/productpicker.js b/public/viewjs/components/productpicker.js index 8001f45e..d36815f2 100644 --- a/public/viewjs/components/productpicker.js +++ b/public/viewjs/components/productpicker.js @@ -175,7 +175,7 @@ $('#product_id_text_input').on('blur', function(e) } else // Normal product barcode handling { - possibleOptionElement = $("#product_id option[data-additional-searchdata*=\"" + input + ",\"]").first(); + possibleOptionElement = $("#product_id option[data-additional-searchdata*=\"" + input.toLowerCase() + ",\"]").first(); } if (GetUriParam('flow') === undefined && input.length > 0 && possibleOptionElement.length > 0) diff --git a/views/components/productpicker.blade.php b/views/components/productpicker.blade.php index 7198e8b2..72d1ccdd 100644 --- a/views/components/productpicker.blade.php +++ b/views/components/productpicker.blade.php @@ -66,7 +66,7 @@ $bc = FindObjectInArrayByPropertyValue($barcodes, 'product_id', $product->id); } @endphp - @endforeach