How to add conditionon a field in BI publisher template for language control.
I want to determine the language output of the AR invoice report based on the bill-to site address in the template using BI publisher.
If the bill-to site is located in Sweden, the document should be in Swedish. If the bill-to site is located outside of Sweden, the document should be in English.
I want to add below condition for every field in the template but because of size constraint it is not allowing me to do so.
Is there any other way out to do this? Please guide me.
<?xdofx:if(trx_type_name = 'Projects Invoice' and trx_type_name like 'INV_%SO1')and TRX_BILL_TO_COUNTRY<>'Sweden' then 'INOVICE' elsif(trx_type_name = 'Projects Invoice' and trx_type_name like 'INV_%SO1')and TRX_BILL_TO_COUNTRY='Sweden' then 'FAKTURA'elsif(trx_type_name = 'Projects Credit Memo' and trx_type_name like 'CM_%SO1')and TRX_BILL_TO_COUNTRY<>'Sweden' then 'CREDIT MEMO'elsif(trx_type_name = 'Projects Credit Memo' and trx_type_name like 'CM_%SO1')and TRX_BILL_TO_COUNTRY='Sweden' then 'KREDITFAKTURA'else null end if?>