Retrieve a stock control price field.
<nPriceType> --> A number between 1 and
16. Refer to the table below for return values for each price
type.
|
nPriceType
|
Return Value
|
Mandatory
|
|
1
|
Cost in store (CIS) price.
This is the price used for evaluating inventory
cost and is normally the same as the system average cost price.
|
Yes
|
|
2
|
Average cost price.
|
No
|
|
3
|
Last cost price exclusive of taxes.
|
No
|
|
4
|
Default invoice cost price exclusive of
taxes.
This is normally the same as the cost in store
(CIS) price.
|
Yes
|
|
5
|
Default sell price exclusive of tax.
This is typically the standard sell price when no
other special price or discount applies.
|
Yes
|
|
6
|
Default cost inclusive of tax.
This is typically the same as the default
calculated invoice cost price excluding tax. In most business
environments the cost price of an item does not change because tax
may be applicable. Rather, taxes are normally calculated and
maintained separately from the item's initial cost.
|
Yes
|
|
7
|
Default sell price inclusive of tax.
This is typically the same as the invoice sell
price excluding taxes. In most business environments the sell price
of an item does not change because taxes may be applicable, except
of course in the sense that tax is added to the sell price. This is
because tax is usually tracked separately from the sell price (even
when the sell price is presented as inclusive of tax).
|
Yes
|
|
8
|
Default list price exclusive of tax.
|
No
|
|
9
|
Default list price inclusive of tax.
|
No
|
|
10
|
Buy price exclusive of tax.
This is typically the purchase order buy price of
a stock item.
|
Yes
|
|
11
|
Box buy price exclusive of tax.
This is the unit purchase price when purchasing
in boxes, crates, etc. This price will be used in place of Buy
Price Exclusive of Tax when the Stock Control Box Conversion factor
for a stock item is not set to zero or 1, and when no other
alternate box buy price has been specified for a particular unit of
measure.
|
No
|
|
12
|
The last cost price inclusive of applicable
taxes.
|
No
|
|
13
|
Unit tax amount of the stock item.
This is often not tracked or maintained separately in
stock control in most company configurations.
|
|
|
14
|
Last unit purchase cost in base currency.
|
No
|
|
15
|
The default sell price exclusive of tax in box
units.
This price field is provided for backward
compatibility.
|
No
|
|
16
|
The default sell price inclusive of tax in box
units.
This price field is provided for backward
compatibility.
|
No
|
Returns the requested stock control price field.
If a particular price type has not been defined in a particular
company configuration, then a value of zero is returned.
This function is used to return a particular
stock item price from stock control. It can be used to retrieve the
average cost, last cost, default item sell price and other types of
price definitions. Not all price definitions may be available in
all company configurations.