Thursday, February 18, 2021
2 changes · master
Resolved issues and error corrections
The forecast report now uses stock values only for the selected warehouse's company. This prevents errors when businesses manage inventory across companies that use different currencies.
Original PR description
Before this commit, the SVL domain wasn't correctly set. So we got back SVL for all companies, which can lead to an error if the companies use different currencies. How to reproduce: - Create a new company with a different currency than the existing one; - For a product, define a cost and add some qty. on hand for the two companies; - Display the Forecast Report for this product -> traceback. To fix that, we use `product.product` `value_svl` field instead of recomputing the value from the SVL and we do that only for the current selected warehouse's company, so we deal with only one currency at the time.
The stock forecast report now uses the proper currency when showing inventory values. This helps businesses avoid confusing or misleading financial figures in stock planning reports, especially when multiple currencies are involved.
Original PR description
Adds a test related to the fix 67d975be75963678d25ae54289b2f1de639c8bed