IBAN selection according to the Active Flows scope
Issue
IBAN selection always gave priority to the site, then the company, without considering the level selected in Active Flows.
Impact
The bank details included in the invoice could fail to match the configured issuing scope.
Fix
The lookup now prioritises the company or site according to the Active Flows rule applicable to the invoice. The other level remains the fallback when the priority IBAN is missing.
Expected result
the IBAN included in the UBL file gives priority to the issuing scope defined in Active Flows, while retaining fallback between company and site.