How to resolve error - "You can not create a purch...
# ask-stanley-ai
a
How to resolve error - "You can not create a purchase order and a work order for the same line." when saving a sales order
c
AI generated answer (using internal Slack threads):
The error "You can not create a purchase order and a work order for the same line." when saving a sales order typically occurs when the system is trying to create both a Purchase Order (PO) and a Work Order (WO) for the same item on a sales order. This is not allowed in NetSuite as an item can either be purchased or manufactured, but not both. To resolve this issue, you need to ensure that the item is either set to be purchased or manufactured, but not both. This can be done by checking the item record and ensuring that the "Create PO" or "Create WO" field is correctly set. If the item is to be purchased, the "Create PO" field should be checked and the "Create WO" field should be unchecked. If the item is to be manufactured, the "Create WO" field should be checked and the "Create PO" field should be unchecked. If you are using a script to automate the creation of POs and WOs from sales orders, you need to ensure that the script is correctly checking the item record and setting the "Create PO" and "Create WO" fields appropriately. If the script is incorrectly setting both fields to true, this could be causing the error. Remember, if an item is sometimes manufactured and sometimes purchased, you may need to use a different approach, such as creating separate item records for the purchased and manufactured versions of the item, or using a custom field to indicate whether the item should be purchased or manufactured for a particular sales order. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842349
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839607954
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830755353
Please provide your feedback on this answer.