Private
Public Access
finalmente correjido tema de generacion de alertas
Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
1 parent
65540d8425
commit
a6112ca23e
1 file changed
+1
-1
@@ -19,7 +19,7 @@ func RequiereAlertaStockBajo(stock *models.Stock, repuesto *models.Repuesto) boo
|
|||||||
if stock == nil || repuesto == nil || repuesto.StockMinimo <= 0 {
|
if stock == nil || repuesto == nil || repuesto.StockMinimo <= 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return stock.Cantidad < float64(repuesto.StockMinimo)
|
return stock.Cantidad <= float64(repuesto.StockMinimo)
|
||||||
}
|
}
|
||||||
|
|
||||||
// EnviarAlertaStockBajo intenta enviar el aviso por comms. Devuelve false si
|
// EnviarAlertaStockBajo intenta enviar el aviso por comms. Devuelve false si
|
||||||
|
|||||||
Reference in new issue
Block a user