Hi All. Using SuiteScript, I am trying to create a...
# suitescript
s
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.
b
there is supposed to be a poids default value for vendor bills that is supposed to do this for you
ive never actually gotten it to work
if you want to bill multiple purchase orders, then you will need to setup the item lines to match yourself
that means manually setting the lines on the bill to match the lines on the purchase orders
including the link between them, which are the
orderdoc
and
orderline
columns
s
@battk Thanks alot. I will try that solution.