mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Make product barcode matching case insensitive (closes #2609)
This commit is contained in:
parent
cc40344845
commit
caa28af0d2
@ -19,6 +19,7 @@
|
|||||||
- => Quick video demo (using a Barcode Laser Scanner): https://www.youtube.com/watch?v=-moXPA-VvGc
|
- => 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
|
- => 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`
|
- 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)
|
- 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 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
|
- 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
|
||||||
|
@ -175,7 +175,7 @@ $('#product_id_text_input').on('blur', function(e)
|
|||||||
}
|
}
|
||||||
else // Normal product barcode handling
|
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)
|
if (GetUriParam('flow') === undefined && input.length > 0 && possibleOptionElement.length > 0)
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
$bc = FindObjectInArrayByPropertyValue($barcodes, 'product_id', $product->id);
|
$bc = FindObjectInArrayByPropertyValue($barcodes, 'product_id', $product->id);
|
||||||
}
|
}
|
||||||
@endphp
|
@endphp
|
||||||
<option data-additional-searchdata="@if(isset($bc)){{ $bc->barcodes }}@endif,"
|
<option data-additional-searchdata="@if(isset($bc)){{ strtolower($bc->barcodes) }}@endif,"
|
||||||
value="{{ $product->id }}">{{ $product->name }}</option>
|
value="{{ $product->id }}">{{ $product->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user