Hello,
hmm - that sounds really strange. Is there any chance that you replaced the wrong documents in the database?
No.
In some cases the document is created several times and transmitted only at the end, for example:
(a) I start the creation and write two lines of detail and save the document.
(b) later I add or edit a detail line and save the document;
(c) later still or even the next day I add or edit more detail lines and save the document;
(d) later still or the next day I take the document saved in the database already validated and transmit it to the tax agency.
Each time I save, the application does not know whether the document is finished or not so it always validates it and if it is formally correct saves it for transmission to the tax agency.
The problem occurs, when it occurs, at point d) because the document saved in the database is not the last one but an intermediate one i.e. the one from point a) or point b) in the previous example.
If the document is created and finished at one time the problem cannot occur because the document is stored only once before being transmitted.
In the meantime of (a), (b), (c), (d), users do other things in the database, i.e., they move some goods, collect/pay invoices, record accounting, etc.
Thanks