[IMP] account_caba_payment_date: per-partial dates and lock policy task#31944 - #5
Merged
Conversation
…sk#31944 Date each cash basis entry with the payment date of its own partial reconcile instead of the first partial of the batch, and consider the tax lock date in addition to the user fiscal lock date. When the payment date falls in a locked period the behavior is now configurable per company (default: block the reconciliation with an explanatory error; alternatives: date the entry on the first open day or keep the standard behavior). Add settings UI, tests and readme. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Linked to Odoo task #31944 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Date each cash basis (CABA) entry with the payment date of its own partial reconcile instead of the first partial of the batch, and consider the tax lock date in addition to the user fiscal lock date when deciding whether the payment date is usable.
When the payment date falls in a locked period the behavior is now configurable per company in the accounting settings (Cash Basis Lock Policy):
Version bumped to 17.0.2.0.0 (behavior change: mtnmx runs the previous version in production — after updating, reconciliations into locked periods will be blocked by default unless the policy is changed).
Includes 5 unit tests and updated OCA readme fragments.
Context: Starka task#31944 — VAT cash basis entries were being dated on the reconciliation day (coinciding with the REP stamping day) instead of the payment date when the payment month was already locked.
🤖 Generated with Claude Code