I have the following formula in a NetSuite Saved Search:
NVL({locationpreferredstocklevel},0)-NVL({locationquantityonorder},0)+NVL({locationquantitybackordered},0)-NVL({locationquantityavailable},0)
It works okay except when my AVAILABLE quantity is greater than my PREFERRED STOCK LEVEL quantity.
Then it returns a negative value for RECCOMMENDED QTY TO ORDER.
