Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][IMP] commission: multi-currency support #446

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

jguenat
Copy link
Member

@jguenat jguenat commented Aug 22, 2023

Supersede #405

Improvements based on review in #405 are in a separate commit that will be fixed up later.

@OCA-git-bot
Copy link
Contributor

Hi @pedrobaeza,
some modules you are maintaining are being modified, check this out!

@pedrobaeza
Copy link
Member

Shouldn't we have in settlement lines both amount in company currency and in the original currency?

@jguenat
Copy link
Member Author

jguenat commented Aug 24, 2023

If we need to settle the settlement with an invoice in the company currency it could be useful indeed.
We need to be careful about currency exchange rate. On the settlement line the rate from the source invoice date is used, then when we make the settlement invoice it will be another rate.
This could lead to confusion.

Maybe if we are able to choose the settlement invoice currency (original or company) then there is enough flexibility.

Next week I have a meeting with a customer that use commissions in different currency. I'll ask how they manage it actually. I guess it depends on the commission agreement.

@JordiMForgeFlow
Copy link

Hi @jguenat

Are there any plans to continue with this PR?

@jguenat
Copy link
Member Author

jguenat commented Nov 22, 2023

Hi @JordiMForgeFlow ,

I've been using this module for a client and it seems to work like this but the real commission on foreign currency will be settled early 2024 and maybe I'll have some adjustment to do then.

But if you have time to review this we can already go forward.

@JordiMForgeFlow
Copy link

Hi @jguenat

Any chance the PR could be rebased?

@jguenat jguenat force-pushed the 15.0-imp-commission-multi-currency branch from 842bc25 to 174e144 Compare November 24, 2023 11:00
@jguenat
Copy link
Member Author

jguenat commented Nov 24, 2023

@JordiMForgeFlow I rebased but we can continue there #479 no problem

Copy link

@JordiMForgeFlow JordiMForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code + functional review LGTM!

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge major

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-446-by-pedrobaeza-bump-major, awaiting test results.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit 8593e11 into OCA:15.0 Nov 24, 2023
5 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 486bee7. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants