简体   繁体   中英

Retrieve BillId from VendorPayment Record in Netsuite

I need to retrieve the BillId, for which payment is made. But the VendorPayment Record type has no billId. How to retrieve billId for which the payment is made?

使用供应商付款记录中的createdfrom字段

Here is a sample code:

var id = '100'; //Your vendor payment record
var record = nlapiLoadRecord('vendorpayment', id);
var createdFrom = record.getFieldValue('createdfrom'); //This is the ID of the transaction where the vendor payment was created from.

Or you can create a saved search and add some filtering method in the code to retrieve the associated transaction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM