Fixed product average price/last price/price history chart handling regarding empty/0 prices (fixes #2106)

This commit is contained in:
Bernd Bestel
2023-01-13 13:19:22 +01:00
parent 995df64054
commit efc7b999bb
2 changed files with 74 additions and 0 deletions

View File

@@ -26,9 +26,11 @@
- Defaults to disabled, so no changed behavior when not configured
- Added a new option "Reprint stock entry label" on the stock entry edit page (will print the correspondind stock entry label on save)
- This option will be automatically set on changing the entry's due date
- 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 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
### Shopping list