在 NetSuite 高级 PDF/HTML 模板中添加自定义记录类型子列表
我正在尝试在物料清单高级 PDF 模板上添加自定义记录类型子列表。
我复制了项目表的代码格式,并将其更改为自定义记录类型的id。我能够保存 PDF 模板,没有错误。但是,仅显示标准项目子列表,而我的自定义记录子列表未显示在打印的 PDF 上。
以下是自定义记录类型的 ID 及其应用于工作订单事务的字段。
我还将自定义记录类型设置为工作订单父事务的子记录。
自定义记录类型:溶剂添加返回 (id=customrecord_solvent_add_back)
字段: 溶剂添加回父级 [列表/记录=事务,记录为父级=是] (custrecord_solvent_add_back_parent)
溶剂项目 (custrecord_solvent_item)
溶剂数量 (custrecord_solvent_quantity)
单位 (custrecord162)
溶剂批次号 (custrecord_solvent_batch_number)
<#if record.custrecord_solvent_add_back_parent?has_content>
<table style="width: 100%; margin-top: 10px;">
<thead>
<tr>
<th colspan="5" style="font-size:14px;">Solvent Item</th>
<th align="right" colspan="3" style="font-size:14px;">Qty.</th>
<th align="right" colspan="3" style="font-size:14px;">Unit</th>
<th align="right" style="width: 143px;font-size: 14px;">Batch Number</th>
</tr>
</thead>
<#list record.custrecord_solvent_add_back_parent as item>
<tr>
<td colspan="5" style="font-size:14px;">${item.custrecord_solvent_item}</td>
<td align="right" colspan="3" style="font-size:14px;">${item.custrecord_solvent_quantity}</td>
<td align="right" colspan="3" style="font-size:14px;">${item.custrecord162}</td>
<td align="right" style="width: 143px;font-size: 14px;">${item.custrecord_solvent_batch_number}</td>
</tr>
</#list></table></#if>
我对高级 PDF/HTML 源代码相当陌生代码编辑产品领域经验不足2个月。但拥有超过 4 年的 NetSuite 经验。
预先感谢您的所有帮助。
I am trying to add a custom record type sublist on a Bill of Materials Advanced PDF template.
I copied the code format for item table and change it with the id of the custom record type. I was able to save the PDF template without error. However, only the standard Items sublist are showing, and my custom record sublist is not showing on the printed PDF.
Here are the ids of the custom record type and its fields applied to the work order transaction.
I have also set the custom record type to be a child record of the work order parent transaction.
Custom Record Type: Solvent Add Back (id=customrecord_solvent_add_back)
Fields:
Solvent Add Back Parent [List/Record=Transaction, Record is Parent=YES] (custrecord_solvent_add_back_parent)
Solvent Item (custrecord_solvent_item)
Solvent Quantity (custrecord_solvent_quantity)
Unit (custrecord162)
Solvent Batch Number (custrecord_solvent_batch_number)
<#if record.custrecord_solvent_add_back_parent?has_content>
<table style="width: 100%; margin-top: 10px;">
<thead>
<tr>
<th colspan="5" style="font-size:14px;">Solvent Item</th>
<th align="right" colspan="3" style="font-size:14px;">Qty.</th>
<th align="right" colspan="3" style="font-size:14px;">Unit</th>
<th align="right" style="width: 143px;font-size: 14px;">Batch Number</th>
</tr>
</thead>
<#list record.custrecord_solvent_add_back_parent as item>
<tr>
<td colspan="5" style="font-size:14px;">${item.custrecord_solvent_item}</td>
<td align="right" colspan="3" style="font-size:14px;">${item.custrecord_solvent_quantity}</td>
<td align="right" colspan="3" style="font-size:14px;">${item.custrecord162}</td>
<td align="right" style="width: 143px;font-size: 14px;">${item.custrecord_solvent_batch_number}</td>
</tr>
</#list></table></#if>
I am fairly new to Advanced PDF/HTML source code editing product area with less than 2 months of experience. But has more than 4 years of NetSuite experience.
Thanks in advance for all your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,高级 PDF 中不可能有子记录/自定义记录数据。最好选择套房。
As far as i know, its not possible to have child record/custom record data in Advanced PDF. Better go with a suitelet.