简体   繁体   English

从Netsuite中的VendorPayment记录中检索BillId

[英]Retrieve BillId from VendorPayment Record in Netsuite

I need to retrieve the BillId, for which payment is made. 我需要检索要付款的BillId。 But the VendorPayment Record type has no billId. 但是VendorPayment记录类型没有billId。 How to retrieve billId for which the payment is made? 如何检索要付款的billId?

使用供应商付款记录中的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. 或者,您可以创建一个保存的搜索,并在代码中添加一些过滤方法以检索关联的事务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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