NetSuite Sales Order UserEvent Script Flow
Complete decision tree and action flow for sales order processing
Key Process Notes:
- Department 2 = Retail orders (special handling required)
- SuitePOS Orders are not modified to avoid conflicts
- Gratuity Item IDs: 18473 (Production) / 18249 (Sandbox)
- Fulfillment Decision: Based on location matching:
- Locations match → Store Pickup (creates fulfillment request + cash sale)
- Locations differ → Ship to Customer (mark ready for 3PL)
- Nothing to fulfill → Direct to Cash Sale
- Error Handling: All major operations wrapped in try-catch blocks with logging