Sale reporting values are multiplied by 4
After activating the new feature to update currency rates we noticed that the sale reporting values are multiplied by 4. The problem is that the update currency rates creates a company rate with value of 1 each day is executed, which causes the join on the reporting to duplicate the values.
One fix may be to update the currency cron to not duplicate the self.company
rate to 1 in case it already exists in a date in the past. With this setup the reporting works correct, but I'm not sure if this is the way to go or we should fix in another way.
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
currency_rate.csv | @pokoli | 2022-05-17 11:56:27.268000 UTC | text/csv |