Hi All, Thought I would share something that did ...
# suitescript
m
Hi All, Thought I would share something that did not have much documentation. I have been trying to script the 'Bill Purchase Order' process to create 1 Vendor Bill for multiple POs. Finally figured this out with some help from @mayerlench. Here is a code snippet of how I was able to set the Vendor Bill line items from multiple open POs. I'm sure my code could be better, but I am still somewhat of a newbie. orderdoc and orderline are key to linking the POs to the bill and 'billing' those PO lines. Hope someone finds this helpful. @al3xicon I thought you might have a use case for this still.