Finally, you are required to edit the document, and save it again.
To be extra sure, you may attempt to change the discount amount (not type) to something temporarily, and then save it,
and then re-edit the document back to the original values to refresh the document with the desired discount settings.
Example below :
Edit invoice:
Save invoice:
discounts amount can be found here:
You may then try to push the invoice as normal.