I have a script that fulfils sales orders, which t...
# suitescript
m
I have a script that fulfils sales orders, which takes a JSON object (from the 3PL), creates an
item fulfilment
and adds serial numbers etc. However, sometimes a sales order could have several lines listing the same item, which doesn't match the 3PL's JSON, as the JSON would have all these lines listed as one line (with quantity of X). Since the project also includes kit items etc., this makes it very difficult to match all items perfectly. Question: when executing the
record.transform
function, is there a way in the script "to remove" all suggested lines from the
item fulfilment object
and create them one by one, so they can match the JSON? It seems that I can only fulfil the suggested lines, but not delete/add any on my own.
b
no, functions the same as the ui