transaction.invoice implemented and tested