Fixed max consume amount was not set

This commit is contained in:
Bernd Bestel 2020-12-20 15:01:59 +01:00
parent a5326aa95c
commit 580598b817
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -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
}));
sumValue = sumValue + parseFloat(stockEntry.amount_aggregated);
sumValue = sumValue + parseFloat(stockEntry.amount || 0);
if (stockEntry.stock_id == stockId)
{