Allow optional partial units of products in stock (closes #123)

This commit is contained in:
Bernd Bestel
2019-01-26 14:17:02 +01:00
parent 9e139e2b73
commit dfc05e0bec
10 changed files with 158 additions and 11 deletions

View File

@@ -9,7 +9,7 @@
redirectDestination = returnTo + '?createdproduct=' + encodeURIComponent($('#name').val());
}
var jsonData = $('#product-form').serializeJSON();
var jsonData = $('#product-form').serializeJSON({ checkboxUncheckedValue: "0" });
Grocy.FrontendHelpers.BeginUiBusy("product-form");
if ($("#product-picture")[0].files.length > 0)