See The post and interface settings changed in Accounts Receivable or other applications for more information on this issue.
How do I void an invoice in Accounts Receivable?
The previous work completed, total billed, retained, or adjusted amounts in Billing and/or Contracts is incorrect (Unposted Entries in Contracts)