diff --git a/public/viewjs/consume.js b/public/viewjs/consume.js index d49fb8d7..6ee19d17 100644 --- a/public/viewjs/consume.js +++ b/public/viewjs/consume.js @@ -66,7 +66,7 @@ } Grocy.FrontendHelpers.EndUiBusy("consume-form"); - toastr.success(__t('Removed %1$s of %2$s from stock', Math.abs(result.amount) + " " + __n(Math.abs(result.amount), productDetails.quantity_unit_stock.name, productDetails.quantity_unit_stock.name_plural), productDetails.product.name) + '
' + __t("Undo") + ''); + toastr.success(__t('Removed %1$s of %2$s from stock', jsonForm.amount + " " + __n(jsonForm.amount, productDetails.quantity_unit_stock.name, productDetails.quantity_unit_stock.name_plural), productDetails.product.name) + '
' + __t("Undo") + ''); $("#amount").attr("min", "1"); $("#amount").attr("max", "999999");