ディスカッション
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.
トランザクション内でのアイテムのレコードタイプを動的に取得
適用
製品: NetSuite 2023.1
シナリオ
アイテムサブリストのアイテムレコードを確認する必要がありますが、サブリスト内のアイテムで異なるレコードタイプが使用されている条件がある場合があります(例:在庫アイテム、非在庫アイテム)。
注:これは、後でトランザクションのアイテムが無効化された場合に使用できます。後でトランザクションを編集すると、エラーが発生する場合があります。
解決策
以下のサンプルスクリプトは保存時にトリガーされるクライアント側のスクリプトで、トランザクションが無効なアイテムを含むレコードを保存できないようにする。
- サンプルスクリプトを作成:
function mySaveRecord(){for (var i = 1; i <= nlapiGetLineItemCount('item'); i++) { // Loop through each of the items in the sublist var itype = nlapiGetLineItemValue('item', 'itemtype', i); // Get the item type var recordtype = ''; switch (itype) { //
タグ付けされた:
0