RE: Suitescript custom code
I’ve done this in the past, and I would still be careful doing this. Make sure you have a solid understanding of Lot Numbering and how it impacts with transactions before starting. (Also, if UOM or Bins are in place – expect extra challenges)
I wouldn’t pick this as a “new to SuiteScript” project.