Fixed bug in invoice transaction edit functionality.
(cherry picked from commit 3b222912249db67078059fc761fd5f478b2485d0)