ディスカッション

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.

配送の場所の値を基に請求書/現金売上の場所を既定する

編集済:Sep 2, 2025 5:09AM SuiteCloud / カスタマイズ

適用

製品:  NetSuite 2025.1

シナリオ

関連の配送を基づき、請求書/現金売上の場所を既定するサンプルのスクリプトです。

解決策

SuiteScript 1.0:

function defaultLocation(type) {
 var salesOrder = nlapiGetFieldValue('createdfrom');
 var location = '';
 var sObj = nlapiLoadRecord('salesorder', salesOrder);
 for (var i = 1; i <= sObj.getLineItemCount('links'); i++) {
   var type = sObj.getLineItemValue('links', 'type', i);
   nlapiLogExecution('DEBUG', 'Type: ', type);
   if (type == 'Item Fulfillment') {
     var id = sObj.getLineItemValue('links', 'id', i);
     nlapiLogExecution('DEBUG', 'ItemFulfillment: ', id);
     var iObj = nlapiLoadRecord('itemfulfillment', id);
     for (var j = 1; j <= iObj.getLineItemCount('item'); j++) {
       for (var k = 1;

ようこそ!

サインイン

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

登録

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

リーダーボード

コミュニティの達人

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

今週のリーダー

今月のリーダー

歴代リーダー