Coldstar
Coldstar

Reputation: 1341

NetSuite: Setting Fulfill=false for item fulfillment line items

Using suitescript 2.0, Is it possible to transform a sales order into an item fulfillment and set the fulfill = false, like you can in the UI. This so I can save it, get the id. I want to prevent it from telling me

'You must enter at least one line item for this transaction'

when we don't know what the line items will be yet. For example we have a method called

CreateItemFulfillment(sales_order:string):number

Which transforms a sales order to IF and returns (or we want to return) the item fulfillment ID so it can be used down the line in the codebase

Upvotes: 0

Views: 1496

Answers (1)

Ken P
Ken P

Reputation: 1

you can't save an item fulfillment record with 0 line item being selected. You need to select as least 1 line item. That's the error that's being returned.

Upvotes: 0

Related Questions