diff --git a/changelog/77_UNRELEASED_xxxx-xx-xx.md b/changelog/77_UNRELEASED_xxxx-xx-xx.md
index 0a5dd6a4..324b967e 100644
--- a/changelog/77_UNRELEASED_xxxx-xx-xx.md
+++ b/changelog/77_UNRELEASED_xxxx-xx-xx.md
@@ -21,6 +21,7 @@
- Optimized that when moving a product to a freezer location (so when freezing it) the due date will no longer be replaced when the product option "Default due days after freezing" is set to `0`
- Product barcode matching is now case-insensitive
- Added a new column "Product picture" on the products list (master data) page (hidden by default)
+- Optimized that when navigation between the different "Group by"-variants on the stock report "Spendings", the selected date range now remains persistent
- Fixed that a once set quantity unit on a product barcode could not be removed on edit
- Fixed that when consuming a specific stock entry which is opened, and which originated from a before partly opened stock entry, the unopened one was wrongly consume instead
diff --git a/public/viewjs/stockreportspendings.js b/public/viewjs/stockreportspendings.js
index d51d8c22..c76afa72 100644
--- a/public/viewjs/stockreportspendings.js
+++ b/public/viewjs/stockreportspendings.js
@@ -143,3 +143,11 @@ $("#product-group-filter").on("change", function()
UpdateUriParam("product-group", $(this).val());
window.location.reload();
});
+
+$(".group-by-button").on("click", function(e)
+{
+ e.preventDefault();
+
+ UpdateUriParam("group-by", $(this).attr("data-group-by"));
+ window.location.reload();
+});
diff --git a/views/stockreportspendings.blade.php b/views/stockreportspendings.blade.php
index 846f6816..027708ba 100644
--- a/views/stockreportspendings.blade.php
+++ b/views/stockreportspendings.blade.php
@@ -31,16 +31,19 @@
href="#">
{{ $__t('Group by') }}:
-
+
{{ $__t('Product') }}
-
+
{{ $__t('Product group') }}
-
+
{{ $__t('Store') }}