Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
How to insert data into csv into file Payment File Format in EFT?
Hi,
I created a custom Payment File Format for Positive Pay.
I want the output file as CSV. I written code as follows.
#OUTPUT START#
<table>
<Worksheet>
<#list payments as payment>
<#assign entity = entities[payment_index]>
<row>
<Cell><Data ss:Type="String"> ${cbank.custpage_pp_custrecord_2663_acct_num} </Data></Cell>
<Cell><Data ss:Type="String"> </Data></Cell>
<Cell><Data ss:Type="String"> ${payment.trandate?string("MMddyy")} </Data></Cell>
<Cell><Data ss:Type="String"> ${buildEntityName(entity,true)} </Data></Cell>
<Cell><Data ss:Type="String"> ${formatAmount(getAmount(payment),"dec")} </Data></Cell>
<Cell><Data ss:Type="String"> </Data></Cell>
</row>
</#list>
</Worksheet>
</table>