mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Fixed /stockoverview "Min. stock amount" column sorting (fixes #2189)
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
- The product option "Quick consume amount" (the amount used for the "quick consume/open buttons" on the stock overview page) has been split into another option "Quick open amount", to be able to set different amounts for consume and open (defaults to the "Quick consume amount" per product, so no changed behavior when not configured)
|
- The product option "Quick consume amount" (the amount used for the "quick consume/open buttons" on the stock overview page) has been split into another option "Quick open amount", to be able to set different amounts for consume and open (defaults to the "Quick consume amount" per product, so no changed behavior when not configured)
|
||||||
- Changed that for the product's average and last price (and for the price history chart) stock transactions with an empty or `0` price are ignored
|
- Changed that for the product's average and last price (and for the price history chart) stock transactions with an empty or `0` price are ignored
|
||||||
- Fixed that hiding the "Purchased date" column (table options) on the stock entries page didn't work
|
- Fixed that hiding the "Purchased date" column (table options) on the stock entries page didn't work
|
||||||
- Fixed that sorting by the "Value" column on the stock overview page didn't work
|
- Fixed that sorting by the "Value" and "Min. stock amount" columns on the stock overview page didn't work
|
||||||
- Fixed that the consumed amount was wrong, when consuming multiple substituted subproducts at once and when multiple/different conversion factors were involved
|
- Fixed that the consumed amount was wrong, when consuming multiple substituted subproducts at once and when multiple/different conversion factors were involved
|
||||||
- Fixed that for a product's average price, only currently in-stock items were considered, not already consumed ones
|
- Fixed that for a product's average price, only currently in-stock items were considered, not already consumed ones
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@ var stockOverviewTable = $('#stock-overview-table').DataTable({
|
|||||||
{ "type": "html", "targets": 5 },
|
{ "type": "html", "targets": 5 },
|
||||||
{ "type": "html", "targets": 11 },
|
{ "type": "html", "targets": 11 },
|
||||||
{ "type": "custom-sort", "targets": 12 },
|
{ "type": "custom-sort", "targets": 12 },
|
||||||
{ "type": "num", "targets": 13 },
|
{ "type": "html-num-fmt", "targets": 13 },
|
||||||
{ "type": "custom-sort", "targets": 4 },
|
{ "type": "custom-sort", "targets": 4 },
|
||||||
{ "type": "custom-sort", "targets": 18 }
|
{ "type": "custom-sort", "targets": 18 }
|
||||||
].concat($.fn.dataTable.defaults.columnDefs)
|
].concat($.fn.dataTable.defaults.columnDefs)
|
||||||
|
Reference in New Issue
Block a user