fixed state validation on report

While getting the status of the "report", the state attribute is an string and its compared with an integer.
Having as consequence that methods like "transaction_cancelled?" turn always false