Discussions
Is it possible to include Bill/Vendor Credit Details in generated Electronic Payment Files?
Hello @Jack Daryl Espiel-Oracle --I am trying to follow a bank template format to include both Payments (CINV) and Credits (CREN).
I tried this but the credits aren't in the "payment" list:
<#list transHash[payment.internalid] as transaction>
<#if transaction.type = "vendorcredit">
<Strd>
<RfrdDocInf><Tp><CdOrPrtry><Cd>CREN</Cd></CdOrPrtry></Tp><Nb>${setLength(transaction.tranid,10)}</Nb>
</RfrdDocInf><RfrdDocAmt><CdtNoteAmt Ccy="SEK">${formatAmount(getAmount(payment),"decLessThan1")}</CdtNoteAmt></RfrdDocAmt>
</Strd>
<#else>
<Strd>
<RfrdDocInf><Tp><CdOrPrtry><Cd>CINV</Cd></CdOrPrtry></Tp><Nb>${setLength(transaction.tranid,10)}</Nb>
</RfrdDocInf><RfrdDocAmt>
<RmtdAmt Ccy="SEK">${formatAmount(getAmount(payment),"decLessThan1")}</RmtdAmt></RfrdDocAmt>
</Strd>
</#if>
</#list>
Any guidance would be appreciated. Thanks.