You can spin through each line and set the "isclos...
# suitescript
c
You can spin through each line and set the "isclosed" checkbox to true which will close the order if set for all lines. There's def some suiteanswer articles on it for code samples.
k
but this actually close the order, not cancels it
s
In this case Close and Cancel are basically the same. Its means that any remaining qty it will not be fulfilled. What we did at one company was to set the price to 0 when we closed the list so it would not show a value in any forecasts.
p
Closed and Cancel are not the same. You can only cancel an order when the status is Pending Approval and you can only close an order after approval. In terms of reporting they will not be the same too.
k
Good idea for the price. Yes, we can cancel the order only if its pending approval, but only from UI, not code
s
@Patrick A. fair enough. I was referring to from an inventory and fulfillment perspective. either one will stop the order from being fulfilled and remove it from the open orders list. But I get your point overall its not the same.