ディスカッション

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.

一括クローズ返品承認レコード

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

適用

製品:  NetSuite 2023.2

シナリオ

現在、返品承認レコードの一括クローズはまだサポートされておらず、この問題に対処する機能改善149396が提出されています。

解決策

別の解決策として、Suiteletを使用してその目標を達成します。

function formSuitelet(request, response){‌

	if ( request.getMethod() == 'GET' )
	{‌
		var form = nlapiCreateForm('Bulk Close RMA');
		form.addSubmitButton('Submit');
		response.writePage( form );

	}

	else{‌

		var searchresults = nlapiSearchRecord(null,'customsearch975'); 
		// 'customsearch975' is the internal ID of the custom saved search used to filter the records that the user would like to close

		for ( var i = 0; searchresults != null && i < searchresults.length; i++ )
		{‌
			var searchresult = searchresults[ i ];
			var recID = searchresult.getValue('internalid');
			nlapiLogExecution('debug', 'searchresult'+i, recID);

			var rec = nlapiLoadRecord('returnauthorization', recID);
			var lineNum = rec.getLineItemCount('item');
			nlapiLogExecution('debug', 'lineNum', lineNum);

			for ( var j = 1; lineNum != null && j <= lineNum; j++ )
			{‌
				nlapiLogExecution('debug', 'j', j);
				var cLine = rec.selectLineItem('item', j);
				nlapiLogExecution('debug', 'cLine', cLine);
				rec.setCurrentLineItemValue('item', 'isclosed', 'T');
				rec.commitLineItem('item');
			}

			var id2 =
タグ付けされた:

ようこそ!

サインイン

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

登録

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

リーダーボード

コミュニティの達人

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

今週のリーダー

今月のリーダー

歴代リーダー