Updating edd_earnings_total when payment totals are edited

Fixes #2589