fix paid,earned metrics when transaction deleted. closes gh-392