Fix invoice and memo totals

This was preventing invoice/memo creation for me.