When Sales Orders are added online I want them to have a Status of Pending Fulfillment, but when I create them using a Web Service I want them to have a Status of Pending Approval.
When I set the status using:
order.setStatus(SalesOrderOrderStatus.__pendingApproval);
I get the error:
You do not have permissions to set a value for element status due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.
Any ideas on how I could achieve this?
Regards,
Wayne Wundram