Rado Tsanev
01/24/2023, 7:01 PMconst customer_payment = nlapiCreateRecord('customerpayment', {
recordmode: 'dynamic'
});
and that returns an object with invoices like :
"apply": [
{
"apply": true,
"applydate": "9/19/2022",
"currency": "USD",
"due": 216.62,
"refnum": "IN-171031",
"total": 214.62,
"type": "Customer Invoice"
},
{
"apply": false,
"applydate": "10/3/2022",
what will be the method if I want to simply add another programmatically created invoice into that customer payment record that lets say should appear under the apply?