Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to "partially" fulfill a sales order?

Tags:

netsuite

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?

like image 386
Anthony Avatar asked Jul 01 '12 10:07

Anthony


1 Answers

I got this working today by doing the following:

  1. Set ReplaceAll to false
  2. Avoid setting a quantityRemaning value (after grabbing a reference to the Item fulfillment)
  3. Set the quantity to the quantity shipped (be sure to set 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.

like image 188
Anthony Avatar answered Nov 09 '22 22:11

Anthony