1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

(bug) negative stock is marked as available

This commit is contained in:
Sylvain 2022-10-03 16:37:46 +02:00
parent ae0d87c893
commit ac861e3bcb

View File

@ -41,7 +41,7 @@ export default class ProductLib {
};
static stockStatusTrKey = (product: Product): string => {
if (product.stock.external === 0) {
if (product.stock.external <= 0) {
return 'app.public.stock_status.out_of_stock';
}
if (product.low_stock_threshold && product.stock.external < product.low_stock_threshold) {