Sales order line item with fulfillments (Part 3)
This topic explains about calculating the quantities for sales order line items with fulfillments, including the transition of states and the impact on fulfillment and return quantities.
If there is another fulfillment (Fulfillment 2) with the quantity of 90 directly changed from Executing to the SentToBilling or Complete state, Zuora adds the quantity of the fulfillment with the previous one. Therefore, Zuora calculates the value of the quantityFulfilled field of the sales order line item as 100 and the value of the quantityPendingFulfillment field of the sales order line item as 0. Zuora also calculates the value of the quantityAvailableForReturn field of the sales order line item as 100.
When all fulfillments of the sales order line item are changed to SentToBilling, Complete, or Canceled state and the value of the quantityPendingFulfillment field of the sales order line item becomes 0, the sales order line item automatically changes from Booked to Complete.
|
Sales order line item with fulfillments |
State and quantity |
Fulfillment 1 |
State and quantity |
Fulfillment 2 |
State and quantity |
|---|---|---|---|---|---|
|
state |
|
state |
|
state |
|
|
quantity |
100 | ||||
|
quantityPendingFulfillment |
0 | ||||
|
quantityFulfilled |
100 |
quantity |
10 |
quantity |
90 |
|
quantityAvailableForReturn |
100 |