hello all, is it possible to "Bill" Purchase Order...
# suitescript
b
hello all, is it possible to "Bill" Purchase Orders to generate Vendor Bill record in Netsuite, but instead of clicking the button on UI, to trigger the process via SuiteScript instead?
l
message has been deleted
Copy code
// Add additional code.
...
record.transform({
   fromType:'purchaseorder',
   fromId: 6,
   toType: record.Type.VENDOR_BILL,
   defaultValues: {
   billdate: '01/01/2019'} });
...
// Add additional code.
something like this
b
hey alex, is this record.transform a netsuite specific method? I understand there's some actions that netsuite takes when the billing from purchase order is triggered, this should follow accordingly?
l
I might need more information about this questions. but record.transform is SuiteScirpt.
b
alright thanks - i think best way is to try it out and see
👍 1