I have tried creating itemFulfillment
records in multiple ways, but no matter what I do, sales orders always end up "completely" fulfilled (regardless of whether all items were actually fulfilled.)
In cases where only "some" of the items in the sales order have been shipped, we need to set those items only to be fulfilled so the appropriate purchase order(s) can be billed and tracking gets sent to customers. When we try to fulfill those items only, the sales order always ends up with ALL items being fulfilled. This creates numerous problems for us.
Things I've tried:
Create new item fulfillment from scratch (without using initialize)
Create new item fulfillment with initialize (to get reference to existing IF record)
Add only line items that have been fulfilled
Add all line items, explicitly setting quantityRemaining = quantity
(where the item has not been fulfilled), and setting quantityRemaining = 0
for fulfilled items.
Trying variations with ReplaceAll = true
, and trying variations again with ReplaceAll = false
.
In every case, every item in the SalesOrder
is marked completely fulfilled (every item is set to fulfilled.)
If anyone has been able to "partially" fulfill a sales order, could you give idea how to do it?
I got this working today by doing the following:
ReplaceAll
to falsequantityRemaning
value (after grabbing a reference to the Item fulfillment)quantitySpecified
to true as well)If you are new to processing itemFulfillment
records, be sure that you set the Line to the appropriate line in the sales order. This is done for you automatically if you initialize the record.
See an example of creating an itemFulfillment
record using initialize here (PDF file available on NetSuite website).
Then you just need those three steps above to "partially" fulfill a sales order.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With