When you preview Customer Invoice form, Main Contact ID is displaying in the Account ID field instead of Account ID maintained in the respective Customer Invoice.
Reproducing the Issue
- Go to Customer Invoicing work center.
- Go to Invoice Documents view.
- Select and Edit a Invoice.
- Select Preview button.
The reason that the Account Number is displaying Main Contact ID while previewing the Customer Invoice is that the Form Template for Customer Invoice is designed that way.
The current Data binding for the field Account Number could be $record.CustomerInvoice.ProductRecipientParty.InternalID which is Main Contact ID of the Account. This is expected system behavior that if it is Product Recipient Party then the Main Contact of the Account used in the Invoice will be displayed.
If you want to change the Product Recipient Party to Buyer Party, then change binding for the field Account No in Adobe Life Cycle Designer. Open the Form using Adobe® LiveCycle® Designer and perform the biding accordingly. So, the new binding should be $record.CustomerInvoice.BuyerParty.BuyerID
KBA , contact id , customer invoice preview , buyer party , account id , AP-SLO , Sales Order Processing , How To