mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Fixed stock overview dynamic < min. stock amount background handling
This commit is contained in:
parent
2d67adedd7
commit
3967b28481
|
|
@ -310,6 +310,10 @@ function RefreshProductRow(productId)
|
|||
{
|
||||
productRow.addClass("table-warning");
|
||||
}
|
||||
else if (parseFloat(result.product.min_stock_amount) > 0 && parseFloat(result.stock_amount_aggregated) < parseFloat(result.product.min_stock_amount))
|
||||
{
|
||||
productRow.addClass("table-info");
|
||||
}
|
||||
|
||||
if (result.stock_amount == 0 && result.stock_amount_aggregated == 0 && result.product.min_stock_amount == 0)
|
||||
{
|
||||
|
|
@ -339,11 +343,6 @@ function RefreshProductRow(productId)
|
|||
{
|
||||
$('#product-' + productId + '-opened-amount').text("");
|
||||
}
|
||||
|
||||
if (result.stock_amount == 0 && result.product.min_stock_amount > 0)
|
||||
{
|
||||
productRow.addClass("table-info");
|
||||
}
|
||||
}
|
||||
|
||||
$('#product-' + productId + '-next-due-date').text(result.next_due_date);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user