Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
let lineItems = []
let i = 0
/* To generate two empty rows */
while(i < 2) {
    lineItems.push({
        "weight": "",
        "unit": ""
      })
      i += 1
  }
/* Variant is the field name */
if(Array.isArray(lineItems)){
  this.changeFormValue("Variant", JSON.stringify(lineItems))
}
  1. Calculation of IOU at level 3 for rejection logic

...