The site for the bank line of a journal will be taken from the detail line when a payment attribute for bank charges is used or any other 'Bank-Account' payment attribute.
The PRINC automatic journal for 'bank-account' payment attributes contains a formula to retrieve the site from the detail line
Before making the following changes a knowledge of the specific implementation of Sage X3 is required to check that these changes will not impact any other areas. Sage are not aware of customisations and settings so full testing should also be perfomed before implementing these changes.
There are also best practices around Automatic Journal changes to ensure changes are not lost on upgrades and therefore a knowledge of automatic journals is required before making these changes.
Step 1 - In function GESGAU - Made a copy of the automatic journal PRINC and copy the 'site' formula from line 18 into the 'site' formula on line 38.
Step 2 - In function GESGRA - Journal Group 'Step 1' - Amend 'Document 1' to the newly created journal name.