Do not decuce current payment to compute the sale amount to pay
When the origin of a payment is set to a sale, we compute the amount of the sale to pay by deducing the other payments. But if the modified payment was already linked to the sale, its amount is deduced which result in an amount too low to pay the full sale.