implementing inbound invoice status check