After updating the line discount the sales invoice still showing the old discount

When posting a sales order after updating the line discount is still showing the old discount percent and amount on the printed invoice but all posted totals and calculations are ok,

Is there a way to refresh sales invoice report data before posting?

By the way when I update the quantity after updating the line discount it works well

What does that mean?

Are there any changes to the standard report?

Actually I’m a new user to ax 2009 but there is a generated design and it is labeled as SalesInvoice(user)

When I create a sales order every thing works well but when I update Line discount or even remove it the proforma invoice still showing the old discount percent and amount and net amount, and when I check totals i find that all calculations are ok and when i open data base tables that related to SalesInvoice the new line discount is ok.

for a quick solution I start to reenter quantities or items units and go back to proforma invoice and it goes well

Thank you for your reply.

That seems to be a problem. Have a developer to debug/investigate the issue, as it is unknown if there are any changes made to the standard report.