Hi
I was wanting to know whether the following is possible before I start looking into the mechanics of how to achieve this:
I have an invoice with inventory items on it.
The account uses the warranty and repair management native Netsuite module.
This means that when the invoice is saved, a warranty registration is created for the quantity ordered of the line item.
For example, if the invoice is for 97 laptops, a warranty registration is created for 97 laptops.
The issue here is that not all 97 will be fulfilled. If there are only 90 items in stock, only these will be fulfilled and the 7 will be placed on back order.
For the 7 on back order, I do not want to register a warranty. I have so far got a script that unchecks the 'create a warranty registration' against the line item.
in order for this to work how I expect, I want the line to be split into two so that when 97 is entered under quantity and the user tabs across (so that the validate line API triggers), the line gets split into two:
one line shows a quantity of 90 (this being the quantity sourced from the same place that sources it for the pop up under the items available message:
and another line for the 7 that will be placed on back order
Is it possible to script this?
Are there any APIs that allow a line to be split into two? (in either SuiteScript 1.0 or Suitescript 2.0 or later?)
Thanks