Calculation rule data model

A CalculationCode can have several different CalculationRules. Each CalculationRule provides a way of producing monetary amounts for each of a group of OrderItems. Which rules are used depend on the result of the CalculationRuleCombine and CalculationRuleQualify CalculationMethods, and the actual calculation is performed by the CalculationRuleCalculate CalculationMethod.

For example, for discounts, the CalculationRuleQualify CalculationMethod does not use restricted rules unless the customer is a member of one of the member groups that are associated with the rule and recognized by the Store as a customer group.

For example, the default CalculationRuleCalculate CalculationMethod uses CalculationScales associated with the CalculationRule to calculate the monetary amounts.

Click any of the database table boxes to see more information about that table. You can also refer to one of the following types of calculation rule data models: calculation rule - discount, calculation rule - shipping, and calculation rule - tax.

Image mapSTOREENTSTORESTOREMBRGPCALCODECALMETHODMBRGRPTAXCGRYCALRULECALRULEMGPCRULESCALECALSCALE