ディスカッション
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.
SuiteScript1.0を介し、単位タイプの換算率の値を取得する
適用
製品: NetSuite 2025.1
シナリオ
ユーザーは、購買オーダーの単位タイプの換算レート値を取得しようとしています。
解決策
var items_count = nlapiGetLineItemCount('item');
// loop in the line items of PO
for (i = 1; i <= items_count; i++) {
var item_id = nlapiGetLineItemValue('item', 'item', i);
var item_unit = nlapiGetLineItemValue('item', 'units', i);
var units_type_id = nlapiLookupField('inventoryitem', item_id, 'unitstype');
var units_type = nlapiLoadRecord('unitstype', units_type_id);
// get line item count of Units Type
var uom_length = units_type.getLineItemCount('uom');
// loop in the line items of Units Type
for (j = 1; j <= uom_length; j++) {
タグ付けされた:
0