【问题标题】:Netsuite Invoice Pdf Show Amount AppliedNetsuite 发票 Pdf 显示应用金额
【发布时间】:2019-12-13 22:40:28
【问题描述】:

问题:

我在发票上启用了高级 pdf,并尝试显示贷记或部分支付的金额。

研究过:

我从 Saved Search 中发现,您可以获取 Applying Transaction Fields... 并选择 Applying Transaction : Amount 和 Applying Transaction : Type, 这正是我在发票上所需要的。

但我不知道如何访问模板中的那些字段。

试过了:

    <tr class="totalrow">
    <td background-color="#ffffff" colspan="4">&nbsp;</td>
    <td align="right"><b>${record.applyingtransaction.type}</b></td>
    <td align="right">${record.applyingtransaction.amount}</td>
    </tr>

它不会渲染它们。

【问题讨论】:

    标签: pdf netsuite invoice


    【解决方案1】:

    您可以只打印使用支付的总金额

    ${record.amountpaid}
    

    如果不使用脚本使模板可以访问此信息,您将无法显示付款类型。

    【讨论】:

    • 我确实知道如何创建脚本,但我不知道在哪里可以添加脚本以便向模板添加更多变量。
    • 我认为您可以使用用户事件 beforeLoad 脚本并检查 context.UserEventType.PRINT 的 context.type
    猜你喜欢
    • 2013-05-24
    • 1970-01-01
    • 1970-01-01
    • 2016-11-18
    • 1970-01-01
    • 2018-10-09
    • 1970-01-01
    • 2013-08-24
    • 1970-01-01
    相关资源
    最近更新 更多