mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-07 01:54:16 +01:00
Merge branch 'dev' for release 6.3.38
This commit is contained in:
commit
ee5741a005
@ -2,6 +2,10 @@
|
||||
|
||||
## Next release
|
||||
|
||||
## v6.3.38 2025 January 27
|
||||
|
||||
- Fix a bug: unable to update product low stock alert
|
||||
|
||||
## v6.3.37 2025 January 22
|
||||
|
||||
- updated rails to 7.0.8.7
|
||||
|
@ -195,7 +195,7 @@ class ProductService
|
||||
return product unless product.low_stock_alert
|
||||
return product unless product.low_stock_threshold
|
||||
|
||||
affected_stocks = stock_movements&.map { |m| m[:stock_type] }&.uniq
|
||||
affected_stocks = stock_movements&.compact_blank&.map { |m| m[:stock_type] }&.uniq
|
||||
if (product.stock['internal'] <= product.low_stock_threshold && affected_stocks&.include?('internal')) ||
|
||||
(product.stock['external'] <= product.low_stock_threshold && affected_stocks&.include?('external'))
|
||||
NotificationCenter.call type: 'notify_admin_low_stock_threshold',
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "fab-manager",
|
||||
"version": "6.3.37",
|
||||
"version": "6.3.38",
|
||||
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
|
||||
"keywords": [
|
||||
"fablab",
|
||||
|
Loading…
x
Reference in New Issue
Block a user