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

[16.0][MIG] account_invoice_accrual #264

Draft
wants to merge 84 commits into
base: 16.0
Choose a base branch
from

Conversation

sbejaoui
Copy link
Contributor

No description provided.

@sbejaoui sbejaoui force-pushed the 16.0-account_invoice_accrual-sbj branch 2 times, most recently from 02999b3 to 4271026 Compare September 21, 2023 08:05
@sbejaoui sbejaoui changed the title [WIP][16.0][MIG] account_invoice_accrual [16.0][MIG] account_invoice_accrual Sep 21, 2023
@sbejaoui
Copy link
Contributor Author

cc/ @jbaudoux , @rousseldenis

copy=False,
help="Link to the Accrual Journal Items.",
)
to_be_reversed = fields.Boolean("To be reversed")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 17, 2024
@jbaudoux
Copy link
Contributor

Replaced by #271

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 24, 2024
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 28, 2024
@jbaudoux
Copy link
Contributor

This PR can be closed as replaced by #271

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 4, 2024
@sbidoul
Copy link
Member

sbidoul commented Oct 30, 2024

This PR can be closed as replaced by #271

I have situations where the draft invoice has been emitted or invoice posted in the next period but before the closing of the previous period is done, so in that case, a helper to do the accrual is useful.

)
dft_accrual_expense_journal_id = fields.Many2one(
comodel_name="account.journal", string="Default Journal for Accrued Expenses"
)
Copy link
Member

Choose a reason for hiding this comment

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

This part should go to account_cutoff_base, I think.

Laetitia Gangloff and others added 14 commits October 30, 2024 16:26
… res_partner * Use default cutoff journal which is on company * Use accrual accounts defined on account_cutoff_accraul_base * Use accounts mapping which is implemented in account_cutoff_base * Adapt test suite
…k invoice if accrual entry is draft * Remove accrual in case of invoice's validation if accrual entry is draft and if entry genereted by the validation is on the same period as accrual * Otherwise, accrual entry is reversed
@sbidoul sbidoul force-pushed the 16.0-account_invoice_accrual-sbj branch 2 times, most recently from ad43d36 to 874d4b9 Compare October 30, 2024 15:29
@sbidoul sbidoul force-pushed the 16.0-account_invoice_accrual-sbj branch from 874d4b9 to fc9e21c Compare October 30, 2024 15:31
@sbidoul sbidoul force-pushed the 16.0-account_invoice_accrual-sbj branch from fc9e21c to 80ac7e3 Compare October 30, 2024 15:33
@sbidoul sbidoul marked this pull request as draft October 30, 2024 16:16
@sbidoul
Copy link
Member

sbidoul commented Oct 30, 2024

Resetting to draft as this is not ready

@sbidoul
Copy link
Member

sbidoul commented Oct 31, 2024

To me the logic to compute the accrual move lines in this PR is unclear, and, I think incorrect.

It should rather take invoice.invoice_line_ids and and accrue these lines after mapping the account.

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

Successfully merging this pull request may close these issues.

9 participants