Use the address from the Responsibility Center instead of the address from the company information on document reports

On document reports, sometimes you might want to use the address from the Responsibility Center instead of the address from the company information.

To enable this, you have to modify the template:

  1. Create a new ResponsibilityCenter JavaScript record linked to the Responsibility Center code on the header.
  2. Modify the source expression of the control on the header to show the address of the Responsibility Center, if the record exists:
  3. ResponsibilityCenter.Code ==  ? CompanyInformation.FieldGroups.Address : ResponsibilityCenter.FieldGroups.Address

  4. Save the layout and activate it.