Can orders be placed for items with custom status
Is it possible to place orders for items which are in status other than Published or Unpublished?
createOrder API does not consider items in any status other than Published as valid
for order creation and throws "Item is in invalid status" error when an item in any other status is passed in the input.
'Published' has a CODE_VALUE of 3000 in the YFS_COMMON_CODE table. Even if a new status with CODE_VALUE set to 4000(anything higher than 3000) is created by calling manageCommonCode API, same error gets thrown. The product only considers 3000(Published) as a valid status.
A possible workaround would be to uncheck the Validate Item flag at DOM > Document Specific > Sales Order > Order Validation. The API would then not validate the item status and order would get created successfully. However, with this flag unchecked, orders can also be created for items that are not present in the DB.
More support for:
Sterling Selling and Fulfillment Suite
Software version: 8.0, 8.5, 9.0, 9.1, 9.2
Operating system(s): AIX, HP-UX, Linux, Solaris, Windows
Reference #: 1632896
Modified date: 31 March 2013
Translate this page: