Skip to content

[IMP] account_invoice_constraint_chronology: Prevent Invoice Creation Blockage #1890

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

Closed
zuher83 opened this issue May 27, 2024 · 1 comment
Closed
Labels
enhancement stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@zuher83
Copy link

zuher83 commented May 27, 2024

Is your feature request related to a problem?

Yes, the problem is related to the conformity and accuracy of invoice creation. For example, in France, it is illegal to cancel or delete an invoice once it has been created. If an accountant mistakenly creates an invoice on May 27, 2024 with a future date, for example October 20, 2024, and validates it, this will prevent the creation of invoices dated before October 20, 2024. This problem can seriously disrupt the invoicing process between the 2 periods, as the error will prevent journal invoicing until October 20.

Describe the solution you'd like

I propose two potential solutions:

  1. Disallow the creation of invoices with dates after the current date.
  2. Add an integer field in the accounting journal to allow some flexibility. This field would specify the number of days (e.g., 3, 5, or 10 days) beyond the current date within which an invoice can be created, based on the administrator's configuration.

Describe alternatives you've considered

An alternative solution would be to create a new module that inherits from account_invoice_constraint_chronology and implements this important change. This would allow us to address the issue without altering the existing module.

Additional context

In the migration to version 17.0 #1889 , I did not implement any changes to address this issue. If you agree, I can implement the proposed changes directly in the account_invoice_constraint_chronology module.

I look forward to your feedback on this matter.

Copy link

There hasn't been any activity on this issue in the past 6 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 issue 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 30, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant