Share via


SalesPurchLine.cleanUpPriceHistoryRef Method

Deletes price history references for the SalesPurchLine if the original reference is different than the current reference.

Syntax

public void cleanUpPriceHistoryRef()

Run On

Called

Remarks

Required if the line has not yet been saved and the line is deleted. Price history references are already created and need to be deleted. In this case the original reference will be 0 which will not be equal to the non-zero current reference.

Required if the line has been saved, edited to trigger a price/discount search, and then the line is deleted. In this case the current reference also needs to be deleted and will not be equal to the original reference.

Required if the line has been saved, edited to trigger a price/discount search, and then the line is reread. In this case the current reference needs to be deleted as it will no longer apply to the line. The original reference will be correct.

See Also

Reference

SalesPurchLine Map