The f_4P_IVGetItemPrice function is a scalar function that returns the UOMPrice for an item.
It takes the ITEMNBR and CUSTNMBR for parameters, it looks up the PRCLEVEL for the customer and attempts to find a price for that item in the Base Unit of Measure (this might be changed to Selling Unit of Measure)
If the lookup fails, it returns the price for the item's default price schedule.
Failing that, it returns 0
Edit 6/19 updated to handle multiple Pricing Methods. The only one that we currently support are 1 and 3. Need more? Ask us.