Hello. I am trying to set lot numbers on the items when the sales order is created. This is working fine except when there is a kit item with lot numbered item as component. In this case, I can only add lot numbers when creating item fulfillment. I cannot add lot numbers during before load event or using client script.
To work around this issue, I tried using a Suitelet but I get this error: "Error occurred: You must have at least one valid line item for this transaction." However, when creating IF from SO, it works fine.
Any advice?