ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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.
SuiteScriptを使用して、収益認識テンプレートの初期設定額フィールドに%記号を追加
適用
NetSuite 2025.1
シナリオ
ユーザーは、SuiteScript 2.0を使用して収益認識テンプレートの初期金額フィールドに「%」記号を含む値を設定しようとした際に、上記のエラーが発生しています。
解決策
ユーザーは、setTextメソッドを使用することで、初期金額フィールドに「%」記号を含めても、上記のエラーが発生しないことを確認しています。
SuiteScript 2.0
require(['N/record', 'N/format'], function(record, format) { var revRecTemp = record.load({ type: record.Type.REV_REC_TEMPLATE, id: 12, isDynamic: true, }); var initialAmount = 30; revRecTemp.setValue({ fieldId: 'initialamount', value: initialAmount }); var formatted = format.format({ value: initialAmount, type: format.Type.PERCENT }); revRecTemp.setText({ fieldId: 'initialamount', text: formatted }); var recId = revRecTemp.save({});});
タグ付けされた:
0