Does anyone know if you can create a Bill from mul...
# suitescript
c
Does anyone know if you can create a Bill from multiple Purchase Orders in SuiteScript?
c
I have a SuiteLet where you select the POs you want to bill, I was thinking I would create() a bill, copy all of the lines/data I need then add the POids to the related records list, the save(). Does that sound possible?
b
depends on what you copy for the lines
i would expect that the related records sublist is not editable
c
Not editable even before you save the record?
If that's the case, I can't see a way for this to work.
I don't know by what mechanism the bill is linked to the POs - this is possible in the UI. It's basically a list of 'created froms' that I'm hoping for.
It looks like each line item (in the bill) has an 'orderdoc' field with the internal ID of the originating PO. Maybe if I set those fields before save it will link the bill to the multiple POs.
b
read the thread, then guess what my answer is
c
ah yeah, I see your final comment, thanks
I wonder if that worked for the guy.