account journal numbering
I suggest to create the following classes
account_period
* get_period(date)
* get_fiscalyear(
account_fiscalyear
* get_fiscalyear(
account_journal
* get_journal_
* get_journal_
these two call
* get_number(
which itself calls existung ir_sequence
for yearly numbering we need a switch in account_journal (for each sequence and sequence_invoice)
* fiscal year (numbering follows the companies fiscal year definition)
* calendar year (example bank statements)
Fallback to current behaviour if no sequence are defined in journals
* must raise error if multiple sequence are defined for the same "code" to avoid random results.
(solved in invoice.py of https:/
IMHO this should go ASAP (even currently as dead code) into 5.0.7 so it can be used to improve other modules
we would avoid a lot of troubles ....!
see also
def onchange_journal_id in account_
https:/
and the patch there
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
-
Unknown
- Milestone target:
- None
- Started by
- Completed by