dennysutanto
07/07/2021, 12:17 PM"name":"USER_ERROR","message":"You must enter at least one line item for this transaction."
I thought the items will be auto copy over to the PO
Thanksbattk
07/07/2021, 12:30 PMbattk
07/07/2021, 12:31 PMbattk
07/07/2021, 12:31 PMbattk
07/07/2021, 12:31 PMdennysutanto
07/07/2021, 12:51 PMdennysutanto
07/07/2021, 12:52 PMbattk
07/07/2021, 12:52 PMbattk
07/07/2021, 1:01 PMdennysutanto
07/07/2021, 1:02 PMvar po_params = {
'recordmode': 'dynamic',
'soid': 8307115,
'shipgroup': 1,
'poentity': 253618,
'specord': 'T',
'custid': 3369282,
'entity': 253618
};
var po = record.create({
type: record.Type.PURCHASE_ORDER,
isDynamic: true,
defaultValues: po_params
});
var poId = po.save({
enableSourcing: true,
ignoreMandatoryFields: true
});
this is my code, i tried clicking the 'Spec. Ord.' link from the SO, it opened up PO page, with all line items in place actuallydennysutanto
07/07/2021, 1:03 PMYou must enter at least one line item for this transaction.
dennysutanto
07/07/2021, 1:04 PMbattk
07/07/2021, 1:13 PMdennysutanto
07/07/2021, 1:23 PMdennysutanto
07/07/2021, 1:26 PM<http://netsuite.com/app/accounting/transactions/purchord.nl?soid=8307115&specord=T&custid=3369282|netsuite.com/app/accounting/transactions/purchord.nl?soid=8307115&specord=T&custid=3369282>
battk
07/07/2021, 1:30 PMbattk
07/07/2021, 1:30 PMdennysutanto
07/07/2021, 1:32 PMdennysutanto
07/07/2021, 1:34 PMPlease enter a value for Vendor
dennysutanto
07/07/2021, 1:34 PMentity
param as welldennysutanto
07/07/2021, 2:01 PMbattk
07/07/2021, 2:11 PMdennysutanto
07/07/2021, 2:20 PMdennysutanto
07/07/2021, 2:33 PMvar po_params = {
'recordmode': 'dynamic',
'soid': 8307115,
//'shipgroup': 1,
'poentity': 253618,
'specord': true,
'custid': 3369282,
'entity': 253618
};
var po = record.create({
type: record.Type.PURCHASE_ORDER,
isDynamic: true,
defaultValues: po_params
});
var poId = po.save({
enableSourcing: true,
ignoreMandatoryFields: true
});
dennysutanto
07/07/2021, 2:34 PMdennysutanto
07/07/2021, 2:35 PM