Hi All.
Using SuiteScript, I am trying to create a new Vendor Bill record using items data from single Item Receipt in some cases and from multiple Item Receipts in some cases. But I am unable to find a way to add parent Purchase Order(s) of those Item Receipts in Related Records sublist of new Bill record. How can I add those Purchase Orders in Related Records of Vendor Bill record? I found that POs in related records depend on the Items on Bill but cannot figure out which line fields we need to populate.