Fixed a rounding regarding stock amount comparison when a (scaled) recipe needs a decimal amount (closes #164)

This commit is contained in:
Bernd Bestel
2019-03-06 19:05:32 +01:00
parent e8b471f572
commit ff15e81abe
3 changed files with 99 additions and 6 deletions

View File

@@ -36,7 +36,7 @@
Grocy.Api.UploadFile($("#recipe-picture")[0].files[0], 'recipepictures', jsonData.picture_file_name,
function(result)
{
window.location.href = U('/recipes');
window.location.href = U('/recipes?recipe=' + Grocy.EditObjectId);
},
function (xhr)
{
@@ -47,7 +47,7 @@
}
else
{
window.location.href = U('/recipes');
window.location.href = U('/recipes?recipe=' + Grocy.EditObjectId);
}
},
function(xhr)