In the most countries of Latin America, to work with the accounting laws of the government, systems need to have an authorization to invoices and credit notes. I’m not sure if the laws in North America or Europe need to have it too.
The authorization need to have ranges(from_auth, to_auth), number of resolution, software provider, start date, end date and serie. The ranges can not be overlapped. If a serie is new for the resolution, the from_auth is 1. If the auth has been used, the from auth is the last to_auth from the authorization.
Also the authorization need to have the state of draft, active or finished.
If a system doesn’t count with a valid authorization for invoices or credit notes, the system can not post invoices or numerate it.
Also the invoice authorization should be used be the authorized company.
Integrate the authorization with fiscal years or maybe with account configuration and have methods to validate the invoice authorization in the invoices with type ‘out’.
I’m not sure if the module could be useful for all the tryton user or developers, but could be a great improvement for Latin American trytoners.