-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
[IMP] account_commission: Settle based on payment date #581
base: 16.0
Are you sure you want to change the base?
[IMP] account_commission: Settle based on payment date #581
Conversation
Account fields can be used only from modules depending on `account`, like `account_commission`. Methods used in `commission` should be defined in `commission` and just overridden in depending modules. Allow to override the date used to insert a line into a settlement.
Hi @pedrobaeza, |
@SirAionTech could the same goal be achieved through #441 ? |
Hi!
I can't say which approach is best, I guess we'll let reviewers and maintainers decide, but thanks for letting me know of that implementation |
cad3084
to
ed9174b
Compare
@SirAionTech I'm missing some context about what you're trying to achieve here: The only change from option "Payment Based" is that commission is moved to a different settlement? Can you add a functional example highlighting differences between "Payment based" and "Payment date based"? |
Sure:
If the commission is "Payment date based" (added in this PR): the invoice will be settled in February's settlement. |
Add a new "Invoice Status" to settle based on the payment date.
For instance: if the invoice is in January but its payment is in February, the invoice will be settled in February's settlement.