Fixed a bug in the transaction history.

A sale was incorrectly being shown as a payment received.