I'm coming back with another issue which can cause some troubles.
Steps to reproduce :
Log with GardenAdmin
Goto Invoice (customer) window
Create a new invoice, save it.
Write down the document number
Now, change the document type target (Invoice > Credit Memo)
Save.
Change again the document type target (Credit Memo > Invoice)
Save.
Look at the document number : you just create a hole in document sequence !
The one you write down will never be used...
This is not a big problem for orders, but for invoices (and especially sales invoices), it sucks !
And accountants people don't like when it sucks
As a workaround, i put a read only logic on C_DocTypeTarget (@C_Invoice_ID@!0 & @IsSOTrx@=Y) so that it is impossible to change doc type after the first save.
But i think it is not the best solution. This should be handled by sequence itself, which should find the correct number.
Any ideas ?
Regards,
Nicolas