As per my understanding vouchers are generated only when customer invoice turns to ‘PostedAuth’ state. We have cases where the voucher is created when invoice is printed and stuck in error.
So to sum up the invoice is still in ‘printed’ state, voucher is already created for the date it was printed and now we are not able to clear the error as the period has been changed.
Tried to replicate the scenario in test environments but with exact same details and parameters invoice is successfully getting processed without errors, so not sure what has caused the invoice to be stuck.
Please suggest.