mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 02:34:44 +00:00
Fixed max consume amount was not set
This commit is contained in:
@@ -235,7 +235,7 @@ $("#location_id").on('change', function(e)
|
|||||||
text: __t("Amount: %1$s; Due on %2$s; Bought on %3$s", stockEntry.amount, moment(stockEntry.best_before_date).format("YYYY-MM-DD"), moment(stockEntry.purchased_date).format("YYYY-MM-DD")) + "; " + openTxt
|
text: __t("Amount: %1$s; Due on %2$s; Bought on %3$s", stockEntry.amount, moment(stockEntry.best_before_date).format("YYYY-MM-DD"), moment(stockEntry.purchased_date).format("YYYY-MM-DD")) + "; " + openTxt
|
||||||
}));
|
}));
|
||||||
|
|
||||||
sumValue = sumValue + parseFloat(stockEntry.amount_aggregated);
|
sumValue = sumValue + parseFloat(stockEntry.amount || 0);
|
||||||
|
|
||||||
if (stockEntry.stock_id == stockId)
|
if (stockEntry.stock_id == stockId)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user