[FIX][TASK 10422] Fix on_change and invoice line state