Fix get_amount and on_change for invoice line #5939