im trying to close a list of transfer orders , it...
# suitescript
s
im trying to close a list of transfer orders , it doesnt seem to be working
Copy code
record.submitFields({
        type: record.Type.TRANSFER_ORDER,
        id: data.id,
        values: {
          // postingperiod: "157",
          orderstatus: "H",
        },
e
typically to close an order you close the lines, and then the orderstatus will update accordingly
you can’t do that through submitFields, though, as it is a line level operation. load the record, loop through the lines, set to closed
👍 1
s
i figure it was the lines that have to be closed
e
😉