ディスカッション

NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.

Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.

アドバンスPDF/HTMLテンプレートで印刷されたアイテムをグループ化する方法

編集済:Jun 2, 2025 2:48PM SuiteCloud / カスタマイズ

適用

製品:  NetSuite 2020.2



シナリオ

アドバンスPDF / HTMLテンプレートを使用して印刷するときに、ユーザーがアイテムサブリストからアイテム値をグループ化したい 。



解決策

1.カスタマイゼーション > フォーム > アドバンスPDF / HTMLテンプレート

2.優先トランザクションテンプレート:「編集/カストマイズ」をクリック

3.合計値コンテナを宣言します。 以下のコードを参照してください:

 
4.アイテムグループごとおよび合計ごとにアイテム値をグループ化します。 以下のコードを参照してください:<#if record.item?has_content><#assign totalTime = 0 totalTimeDiscount = 0 totalAmount = 0 totalAmountDiscount = 0 totalAmountExpense = 0 > 
<#if item.item == "Consulting Services" > 
<#assign totalTime = totalTime + item.quantity> 
<#assign totalAmount = totalAmount + item.amount><#assign description=item.description> 
     
<#elseif item.item == "Test Discount"> 
<#assign totalTimeDiscount = totalTimeDiscount + item.quantity><#assign totalAmountDiscount = totalAmountDiscount + item.amount> 
    
<#elseif item.description?contains("Billable Expense")> 
<#assign totalAmountExpense = totalAmountExpense + item.amount> 
      
<#elseif item.item != "Consulting Services" && item.item != "Discount" && item.item != "Billable Expense">

5.実際のアイテム値を表示します(例:その他のアイテム、コンサルティングサービス、割引、請求可能な費用)。 以下のコードを参照してください:

${item.quantity} 
    ${item.description} 
    ${item.amount} 
     
    </#if></#list> 
     <#if totalTime gt 0 > 
     
    ${totalTime} 
    ${description} 
    ${totalAmount?string.currency} 
     
      </#if> 
    <#if totalAmountDiscount != 0 > 
       
    ${totalTimeDiscount} 
    Discount 
    ${totalAmountDiscount?string.currency} 
     

ようこそ!

サインイン

完全な詳細を表示するには、サインインしてください。

登録

アカウントがありませんか?ここをクリックして始めましょう!

リーダーボード

コミュニティの達人

第2四半期 (4月~6月 2026)

今週のリーダー

今月のリーダー

歴代リーダー