Share via


MCRPriceHistory.initFromInventTableModule Method

Initializes current record from an InventTableModule record.

Syntax

public void initFromInventTableModule(InventTableModule _inventTableModule)

Run On

Called

Parameters

Remarks

Should not need to call directly. Use MCRPriceHistoryUpdateto update history.

When MCRPriceHistory refers to an InventTableModule record, the following fields are dual purpose:

  • The Price value is stored in the MCRPriceHistoryAmount field.

  • The ItemId value is stored in the MCRPriceHistoryItemRelation field.

When MCRPriceHistory refers to a version of InventTableModule, these are unique fields only relevant for InventTableModule:

  • PriceQty

  • ModuleType

When MCRPriceHistory refers to a version of InventTableModule, the following fields are not used:

  • ItemCode

  • AccountCode

  • AccountRelation

  • QuantityAmount

  • FromDate

  • Percent1

  • Percent2

  • Relation

  • Module

  • InventDimId

  • PriceDiscGroupType

  • MerchandisingEventID

See Also

Reference

MCRPriceHistory Table