Skip to content

[18.0][IMP] contract - invoice lines up to date_ref - #1512

Open
anthonissen-a wants to merge 1 commit into
OCA:18.0from
acsone:18.0-ref_contract_invoice_recurring-aan
Open

[18.0][IMP] contract - invoice lines up to date_ref#1512
anthonissen-a wants to merge 1 commit into
OCA:18.0from
acsone:18.0-ref_contract_invoice_recurring-aan

Conversation

@anthonissen-a

Copy link
Copy Markdown

Allows invoicing all recurring occurrences up to date_ref in a single invoice, rather than limiting the process to one occurrence per run.

Previously, the cron processed only a single occurrence per contract line execution. This change eliminates the need for multiple manual or scheduled runs when a contract has multiple backlog occurrences to process up to a given date.

Additionally, this decouples the single-occurrence limitation from _prepare_recurring_invoices_values, providing a cleaner entry point for custom overrides and tailored business logic.

Group all pending recurring occurrences up to date_ref into a single invoice instead of limiting the cron to one occurrence per run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants