added check of transactionstate on order