spec test passes minus BI tests
fixed revenue looking at transaction result instead of invoice status
merge conflicts