I need to find a direct technical method for changing the Account on a Invoice record that is already in 'Posted' status.
I am fully aware that the standard, supported process is to issue a credit note and then rebill the correct account. However, for specific operational reasons, I am looking for the steps to perform a direct data update.
Could someone outline the required DML operations or provide an Apex script example? I am particularly interested in understanding all the necessary related objects that must be updated alongside the Invoice header to ensure data consistency (e.g., blng__InvoiceLine__c, and any other critical records). I am looking for the "how-to," including which triggers might need to be bypassed or considered.
Thank you