Hello, does anyone know how to insert a custom lin...
# suitecommerce
r
Hello, does anyone know how to insert a custom line record when working with customerpayment record similar to how that is done in the LivePayment Module. Lets say you can load customer payment records like:
Copy code
const customer_payment = nlapiCreateRecord('customerpayment', {
    recordmode: 'dynamic'
});
and that returns an object with invoices like :
Copy code
"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?