Fixed consuming tare weight handling enabled products on the stock entries page (fixes #988)

This commit is contained in:
Bernd Bestel
2020-10-18 14:51:32 +02:00
parent 196d304de6
commit 9115645e19
2 changed files with 2 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ $(document).on('click', '.stock-consume-button', function(e)
var wasSpoiled = $(e.currentTarget).hasClass("stock-consume-button-spoiled");
Grocy.Api.Post('stock/products/' + productId + '/consume', { 'amount': consumeAmount, 'spoiled': wasSpoiled, 'location_id': locationId, 'stock_entry_id': specificStockEntryId },
Grocy.Api.Post('stock/products/' + productId + '/consume', { 'amount': consumeAmount, 'spoiled': wasSpoiled, 'location_id': locationId, 'stock_entry_id': specificStockEntryId, 'exact_amount': true },
function(bookingResponse)
{
Grocy.Api.Get('stock/products/' + productId,