next voucher number function modified