Hi,
since transaction nos. are a quite sensitive topic I'm a little curious on how this is caused. The transaction nos are almost exclusively maintained in CU 12. CU367.UnapplyCustInvoices calls CU12.UnapplyCustLedgEntry, which calls CU12.InitCodeunit (where a transaction no. is determined). UnapplyCustLedgEntry doesn't refer to the document type of the Gen. Jnl. Line given as parameter to the call. Is it possible that the root cause is something else?
with best regards
Jens