diff --git a/localization/strings.pot b/localization/strings.pot
index 06314463..ab6ec8e0 100644
--- a/localization/strings.pot
+++ b/localization/strings.pot
@@ -591,10 +591,10 @@ msgstr ""
msgid "Quantity unit"
msgstr ""
-msgid "Only check if a single unit is in stock (a different quantity can then be used below)"
+msgid "Only check if any amount is in stock"
msgstr ""
-msgid "Are you sure to consume all ingredients needed by recipe \"%s\" (ingredients marked with \"check only if a single unit is in stock\" will be ignored)?"
+msgid "Are you sure to consume all ingredients needed by recipe \"%s\" (ingredients marked with \"only check if any amount is in stock\" will be ignored)?"
msgstr ""
msgid "Removed all ingredients of recipe \"%s\" from stock"
@@ -2026,3 +2026,6 @@ msgstr ""
msgid "Hide/view columns"
msgstr ""
+
+msgid "A different amount/unit can then be used below while for stock fulfillment checking it is sufficient when any amount of the product in stock"
+msgstr ""
diff --git a/public/js/grocy.js b/public/js/grocy.js
index a297bb17..fdb5ffc9 100644
--- a/public/js/grocy.js
+++ b/public/js/grocy.js
@@ -938,7 +938,7 @@ $(".change-table-columns-visibility-button").on("click", function(e)
data-table-selector="' + dataTableSelector + '" \
data-column-index="-1" \
> \
- \
';
@@ -998,10 +998,10 @@ $(".change-table-columns-visibility-button").on("click", function(e)
}
});
- var message = '
' + __t('Table options') + '
' + __t('Hide/view columns') + '
' + columnCheckBoxesHtml + '
';
+ var message = '
' + __t('Table options') + '
' + __t('Hide/view columns') + '
' + columnCheckBoxesHtml + '
';
if (rowGroupDefined)
{
- message += '
' + __t('Group by') + '
' + rowGroupRadioBoxesHtml + '
';
+ message += '
' + __t('Group by') + '
' + rowGroupRadioBoxesHtml + '
';
}
bootbox.dialog({
@@ -1009,7 +1009,6 @@ $(".change-table-columns-visibility-button").on("click", function(e)
size: 'small',
backdrop: true,
closeButton: false,
- onEscape: true,
buttons: {
reset: {
label: __t('Reset'),
@@ -1017,16 +1016,15 @@ $(".change-table-columns-visibility-button").on("click", function(e)
callback: function()
{
bootbox.confirm({
- swapButtonOrder: true,
message: __t("Are you sure to reset the table options?"),
buttons: {
- confirm: {
- label: 'Yes',
- className: 'btn-danger'
- },
cancel: {
label: 'No',
- className: 'btn-primary'
+ className: 'btn-danger'
+ },
+ confirm: {
+ label: 'Yes',
+ className: 'btn-success'
}
},
callback: function(result)
@@ -1084,7 +1082,7 @@ $(document).on("click", ".change-table-columns-rowgroup-toggle", function()
dataTable.rowGroup().enable(false);
- //remove fixed order
+ // Remove fixed order
dataTable.order.fixed({});
}
else
@@ -1097,7 +1095,7 @@ $(document).on("click", ".change-table-columns-rowgroup-toggle", function()
dataTable.rowGroup().enable(true);
dataTable.rowGroup().dataSrc(columnIndex);
- //apply fixed order for group column
+ // Apply fixed order for group column
var fixedOrder = {
pre: [columnIndex, 'asc']
};
diff --git a/public/viewjs/components/productamountpicker.js b/public/viewjs/components/productamountpicker.js
index 9ab43ac0..6cb89949 100644
--- a/public/viewjs/components/productamountpicker.js
+++ b/public/viewjs/components/productamountpicker.js
@@ -76,6 +76,8 @@ Grocy.Components.ProductAmountPicker.AllowAnyQu = function(keepInitialQu = false
Grocy.Components.ProductAmountPicker.SetQuantityUnit($("#qu_id").attr("data-initial-qu-id"));
}
+ $("#qu_id").removeAttr("disabled");
+
$(".input-group-productamountpicker").trigger("change");
}
diff --git a/public/viewjs/mealplan.js b/public/viewjs/mealplan.js
index 9674d0aa..c2395f1a 100644
--- a/public/viewjs/mealplan.js
+++ b/public/viewjs/mealplan.js
@@ -667,7 +667,7 @@ $(document).on('click', '.recipe-consume-button', function(e)
var servings = $(e.currentTarget).attr('data-mealplan-servings');
bootbox.confirm({
- message: __t('Are you sure to consume all ingredients needed by recipe "%s" (ingredients marked with "check only if a single unit is in stock" will be ignored)?', objectName),
+ message: __t('Are you sure to consume all ingredients needed by recipe "%s" (ingredients marked with "only check if any amount is in stock" will be ignored)?', objectName),
closeButton: false,
buttons: {
confirm: {
diff --git a/public/viewjs/recipeposform.js b/public/viewjs/recipeposform.js
index 0d564a61..72a81768 100644
--- a/public/viewjs/recipeposform.js
+++ b/public/viewjs/recipeposform.js
@@ -136,7 +136,7 @@ $('#recipe-pos-form input').keydown(function(event)
}
});
-$("#only_check_single_unit_in_stock").on("click", function()
+$("#only_check_single_unit_in_stock").on("change", function()
{
if (this.checked)
{
diff --git a/public/viewjs/recipes.js b/public/viewjs/recipes.js
index dfa49020..1ec045c0 100644
--- a/public/viewjs/recipes.js
+++ b/public/viewjs/recipes.js
@@ -192,7 +192,7 @@ $(".recipe-consume").on('click', function(e)
var objectId = $(e.currentTarget).attr('data-recipe-id');
bootbox.confirm({
- message: __t('Are you sure to consume all ingredients needed by recipe "%s" (ingredients marked with "check only if a single unit is in stock" will be ignored)?', objectName),
+ message: __t('Are you sure to consume all ingredients needed by recipe "%s" (ingredients marked with "only check if any amount is in stock" will be ignored)?', objectName),
closeButton: false,
buttons: {
confirm: {
diff --git a/public/viewjs/stockjournal.js b/public/viewjs/stockjournal.js
index 4a0fdbe0..601a2470 100644
--- a/public/viewjs/stockjournal.js
+++ b/public/viewjs/stockjournal.js
@@ -74,6 +74,8 @@ $("#clear-filter-button").on("click", function()
$("#transaction-type-filter").val("all");
$("#location-filter").val("all");
$("#user-filter").val("all");
+ $("#product-filter").val("all");
+ stockJournalTable.column(1).search("").draw();
stockJournalTable.column(4).search("").draw();
stockJournalTable.column(5).search("").draw();
stockJournalTable.column(6).search("").draw();
diff --git a/public/viewjs/stockjournalsummary.js b/public/viewjs/stockjournalsummary.js
index 49371773..b433ab40 100644
--- a/public/viewjs/stockjournalsummary.js
+++ b/public/viewjs/stockjournalsummary.js
@@ -62,6 +62,7 @@ $("#clear-filter-button").on("click", function()
$("#transaction-type-filter").val("all");
$("#location-filter").val("all");
$("#user-filter").val("all");
+ $("#product-filter").val("all");
journalSummaryTable.column(1).search("").draw();
journalSummaryTable.column(2).search("").draw();
journalSummaryTable.column(3).search("").draw();
diff --git a/views/choresoverview.blade.php b/views/choresoverview.blade.php
index d20605c0..62c3f2cd 100644
--- a/views/choresoverview.blade.php
+++ b/views/choresoverview.blade.php
@@ -119,13 +119,9 @@