jen
03/17/2022, 7:35 PMbattk
03/17/2022, 7:41 PMbattk
03/17/2022, 7:42 PMbattk
03/17/2022, 7:42 PMjen
03/17/2022, 7:45 PMjen
03/17/2022, 7:45 PMjen
03/17/2022, 7:47 PMrender
then parse it for the details I need?jen
03/17/2022, 7:47 PMbattk
03/17/2022, 7:47 PMjen
03/17/2022, 7:47 PMjen
03/17/2022, 7:48 PMjen
03/17/2022, 7:49 PMjen
03/17/2022, 9:18 PMrecord.credit
is coming out as blank/empty even though there are credits applied 😞jen
03/17/2022, 9:18 PMjen
03/17/2022, 9:19 PMjen
03/17/2022, 9:19 PM<#if record.apply?has_content>
<apply>
<#list record.apply as apply>
<applied_to>
<due>${apply.due}</due>
<apply>${apply.apply}</apply>
<currency>${apply.currency}</currency>
<applydate>${apply.applydate}</applydate>
<discamt>${apply.discamt}</discamt>
<discdate>${apply.discdate}</discdate>
<disc>${apply.disc}</disc>
<internalid>${apply.internalid}</internalid>
<trantype>${apply.trantype}</trantype>
<total>${apply.total}</total>
<amount>${apply.amount}</amount>
<refnum>${apply.refnum}</refnum>
<type>${apply.type}</type>
</applied_to>
</#list>
</apply>
</#if>
Credit:
#{record.credit}
<#if record.credit?has_content>
<credits>
<#list record.credit as credit>
<credit_applied>
<due>${credit.due}</due>
<apply>${credit.apply}</apply>
<currency>${credit.currency}</currency>
<creditdate>${credit.creditdate}</creditdate>
<internalid>${credit.internalid}</internalid>
<trantype>${credit.trantype}</trantype>
<total>${credit.total}</total>
<amount>${credit.amount}</amount>
<refnum>${credit.refnum}</refnum>
<type>${credit.type}</type>
</credit_applied>
</#list>
</credits>
</#if>
jen
03/17/2022, 9:20 PMjen
03/17/2022, 9:20 PMvar xml_template = file.load({id: 17488240});
var renderer = render.create();
renderer.templateContent = xml_template.getContents();
renderer.addRecord('record', record.load({
type: record.Type.CUSTOMER_PAYMENT,
id: payment_id
}));
var xml = renderer.renderAsString();
battk
03/17/2022, 11:22 PMjen
03/18/2022, 5:10 PMjen
03/18/2022, 5:16 PMbattk
03/18/2022, 9:44 PMbattk
03/18/2022, 9:44 PMjen
03/18/2022, 10:46 PMjen
03/18/2022, 10:47 PMjen
03/18/2022, 10:47 PMjen
03/18/2022, 11:28 PMbattk
03/19/2022, 5:55 AMjen
03/21/2022, 3:27 PMjen
03/21/2022, 3:36 PMjen
03/21/2022, 3:36 PMjen
03/21/2022, 3:36 PMjen
03/21/2022, 3:37 PM