Issue with payment entry

when tried to make payment entry from fees , this error is showing

Server Error

UnboundLocalError: local variable ‘voucher_type’ referenced before assignment