ディスカッション
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.
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を使用したユーザーイベントスクリプトの「TRANS_AMTS_UNBALANCD」
適用
製品: NetSuite 2020.2
シナリオ
この記事では、エラーを解決するための可能な方法の1つである「TRANS_AMTS_UNBALNCD」に取り組みます。
スクリプトで計算を行っていて、計算結果が予想と異なる場合、TRANS_AMTS_UNBALNCDエラーが発生する可能性があります。
解決策
これを解決する1つの方法は、計算結果の最後に.toFixed(x)を配置することです。 .toFixed(x)内のパラメーターは、表示される小数です。例えば:
var tempTotal = parseFloat((subtotal - discounttotal) + altshippingcost).toFixed(2);
var tempTotal = parseFloat((subtotal - discounttotal) + altshippingcost).toFixed(2);
タグ付けされた:
0