Now the GetInvoicesListByStateCommand works, there was a curious bug in the statement