Hi, I am looking for options on how to cancel a sa...
# suitescript
a
Hi, I am looking for options on how to cancel a sale order via suitescript. Any ideas please.
n
Hi @adityasrivalli, as @Lea CC said, it's not the same between "cancel", "close" or "delete".
c
load the sales order and set all of the lines' "isclosed" to true
m
If you do need to Cancel the order (and not just close), you can do this at your own risk,
nlapiRequestURL('/app/accounting/transactions/salesordermanager.nl?type=cancel&id=' + nlapiGetRecordId());
a
Than you all for responding to my query. will try the query string options and see how it goes.
@michoel was tryng to map this in suitescript 2.0 , does the salesordermanager.nl work?