PCRuntimeLibrary::canCalculatePriceForItemLine Method [AX 2012]

Determines whether the price calculation is possible by checking the product builder parameters and the type of the specified item line.

client server public static boolean canCalculatePriceForItemLine(Common _itemLine)

Run On

Called

Parameters

_itemLine
Type: Common Table
The item line to check for the chance of price calculation.

Return Value

Type: boolean
true if sales price calculation is enabled in the product builder parameters and the calculation is possible on the specified item line; otherwise, false.

The item line types that can use a price calculation are sales lines, sales quotation lines, sales basket lines, and sales quotation basket lines.

Show: