Ok, I have a tricky situation -
I need to "overwrite" the Back Order quantity on the Packing Slip. My high-level concept is to add a custom field on the Packing Slip, and write what I need to into it.
Problem is, in Netsuite, the Back Order quantity is sort of a dynamic value, determined only when you actually print your Packing Slip. What I mean is that, say you are ordering 10 widgets. You make a first fulfillment of 4. You Packing Slip will indicate 6 BO. You then make a second fulfilment for 2 more. BOTH Packing Slip, if printed, now indicate a BO of 4 (10-4 from the first - 2 from the second).
So if I had set my BO to 6 when I had created my first Packing Slip, I would be printing an incorrect value as soon as I made another fulfillment. I need to somehow refresh my value right before printing.
Question is, how do I do that? I tried making a Server-Side Before Load script with type='print', nlapiLoadRecord() my Fulfillment, change the value, and nlapiSubmitRecord() back my changed Fulfillment, but that's not working. I suspect I cannot mess around with a record right before printing. Is that true? Is there any way to write riiight before printing?
Thanks