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][FIX]account_commission: Settlement on reversed moves #503

Conversation

Tisho99
Copy link
Contributor

@Tisho99 Tisho99 commented Feb 19, 2024

There is an error on a use case generating the settlements for the commission on invoices. Steps to reproduce

1 Set up a commission with Invoice State based on paids
2 Create an invoice, confirm it, and asociate his lines to an agent.
3 Generate a credit note to make a full refund of the previous invoice.

4 Settle the commissions for the selected agent. The reversed invoice is not settled and it musts.

The addition of a unit test is pending

@OCA-git-bot
Copy link
Contributor

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

@Tisho99 Tisho99 marked this pull request as draft February 19, 2024 16:36
@Tisho99 Tisho99 force-pushed the 15.0-fix-account_commission-reversed_moves branch 3 times, most recently from d5b292f to 3409822 Compare February 20, 2024 12:08
@Tisho99 Tisho99 marked this pull request as ready for review February 20, 2024 12:12
@Tisho99
Copy link
Contributor Author

Tisho99 commented Feb 20, 2024

The PR is ready @HaraldPanten @ValentinVinagre

@Tisho99 Tisho99 force-pushed the 15.0-fix-account_commission-reversed_moves branch from 3409822 to bb2c23a Compare February 21, 2024 11:34
Copy link

@ValentinVinagre ValentinVinagre left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

@ValentinVinagre
Copy link

@HaraldPanten @Jesarregui , could you review it please?

Copy link

@Jesarregui Jesarregui left a comment

Choose a reason for hiding this comment

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

LGTM

@ValentinVinagre
Copy link

@pedrobaeza do you see it correct?

@pedrobaeza pedrobaeza added this to the 15.0 milestone Feb 23, 2024
@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). 🤖

@Tisho99 Tisho99 force-pushed the 15.0-fix-account_commission-reversed_moves branch from bb2c23a to 305051e Compare February 26, 2024 09:17
@pedrobaeza
Copy link
Member

/ocabot merge patch

Please forward-port it to v16

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-503-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 6a30c6e into OCA:15.0 Feb 26, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@ValentinVinagre ValentinVinagre deleted the 15.0-fix-account_commission-reversed_moves branch February 27, 2024 06:27
@ValentinVinagre
Copy link

@Tisho99 Can you also make the change in v.16?

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