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:
parent
ae0d87c893
commit
ac861e3bcb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user