DynDeveloper.com

DynDeveloper.com

Sign Up Now! Log In
Joel 2/28/2012 3:53:15 PM

f_4P_IVGetItemPrice

* This article, and all our great SQL (Dynamics) documentation, Is available on the SQL (Dynamics) menu

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.

 
Version: All
Section: SQL Scripts