We have implemented a duration capability in sales orders (can order a subscription of x months for example). To do this, I added a field that manages item ordered quantity. We use the original 'quantity' field to manage overall unit quantity so we can process duration-based items. For example, if a user orders 3 12 months subscriptions (where the unit is a single month), then the custom 'item quantity' field would hold '3' and the original 'quantity' field would hold '36' (3 items X 12 months each).
My question has to do with partial fulfillments. Under a normal condition, if you partially fulfill an item, you would change the 'quantity' to reflect the number you actually want to fulfill. When you return to complete the remaining fulfillment, NetSuite displays the remaining value in the 'quantity' field.
With this customization, we do not want the fulfiller changing the 'quantity' field but instead using the custom 'item quantity' field. However, changing this custom field does not fire any calculation so we need to manage this ourselves (e.g. change the 'item quantity' from 3 to 2, our code would change the 'quantity' field from 36 to 24). This part seems pretty straight forward, however it is the returning to complete the fulfillment that is in question.
NetSuite displays the remaining quantity so when I return to the fulfillment, the 'quantity' should show '12' (36 total minus 24 already fulfilled). However, NetSuite won't mess with the custom 'item quantity' field so this will likely return with either blank or with what was last set ('2'). I am curious how NetSuite calculates the remaining for the 'quantity' field as I will need to do something similar for the custom 'item quantity' field. Is it a hidden field that they pull from on form load or a backend lookup prior to form load?
If anyone knows this process here, it would greatly reduce my own trial and error for this.
Thanks.
-Steve