ディスカッション
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 2024.2
シナリオ
顧客が、仕入先支払請求書のメモ・フィールドを一意にすることを希望しています。
解決策
SuiteAnswer記事:「支払請求書の参照番号の重複をチェックし、保存を禁止するクライアント・スクリプトのサンプル | 記事ID:46183」の手順を参照します。但し、以下のサンプルコードを使用します。
function onSave(type, name) { var memo = nlapiGetFieldValue('memo'); if (memo != null && memo != '') { var filter = new Array(); filter[0] = new nlobjSearchFilter('memo', null, 'is', memo); filter[1] = new nlobjSearchFilter('mainline', null, 'is', 'T'); var column = new Array(); column[0] = new nlobjSearchColumn('internalid'); column[1] = new nlobjSearchColumn('transactionnumber'); var searchResults = nlapiSearchRecord('vendorbill', null, filter, column); if (searchResults != null && searchResults.length > 0) { alert('Memo Field is the same with another Vendor Bill with Transaction Number : ' + searchResults[0].getValue('transactionnumber')); return false; } } return true; }
関連 SuiteAnswers
免責事項
ここに記載されているサンプルコードは、法律で認められている最大限の範囲で、いかなる種類の保証もなく、「現状のまま」で提供されています。Oracle+NetSuite社は、開発者がそれぞれの開発プラットフォームにサンプルコードを実装したり、独自の Web サーバー構成を使用したりする際に、個々の成功を保証するものではありません。
タグ付けされた:
0