The invoice moved to paid skipping the posted state when Payment terms are enabled.
Payment terms when the auto collection is ON are not applied to the invoice. The invoice is being generated in the paid state (with due on receipt)
The auto collection is ON: net term days is 3, Payment terms for auto collection as on not being applied on the invoice. The invoice is being generated in the paid state (with due on receipt)
If you look at ev_1nLx8DTTXAGteERll (subscription renewed) : Auto collection is ON : net term days is 3
However, ev_1nLx8DTTXDCgcK57bG (invoice generated): is paid and not posted (Which is not expected). It should ideally be generated with POSTED status by having the terms applied to it.
We checked the unbilled Charges invoiced and Invoice generated event and noticed that the invoice amount is zero.
The invoice moved from pending to paid without going to posted state that is because the invoice amount is zero.
This is expected behavior.
If the invoice is having any amount it won’t move to paid state directly it will move to posted.