[Duplicate] Discount does not calculate/change totals after saving

When i change a discount after the invoice is already saved, the totals do not change anymore.

Also the discount function in the totals section does not work.

Duplicate of Discounts only with Invoice Tax