Fixed /stockoverview "Min. stock amount" column sorting (fixes #2189)

This commit is contained in:
Bernd Bestel 2023-04-03 18:35:38 +02:00
parent 71d44edb8c
commit a56de30268
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 2 additions and 2 deletions

View File

@ -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)
- 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 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 for a product's average price, only currently in-stock items were considered, not already consumed ones

View File

@ -27,7 +27,7 @@ var stockOverviewTable = $('#stock-overview-table').DataTable({
{ "type": "html", "targets": 5 },
{ "type": "html", "targets": 11 },
{ "type": "custom-sort", "targets": 12 },
{ "type": "num", "targets": 13 },
{ "type": "html-num-fmt", "targets": 13 },
{ "type": "custom-sort", "targets": 4 },
{ "type": "custom-sort", "targets": 18 }
].concat($.fn.dataTable.defaults.columnDefs)