Introduction:
This calculates the relative price based on the group total amount excluding sibling Order lines that are marked with a custom property.
- The custom property name is specified by the calculator setting ExemptCustomPropertyName.
For example ExemptCustomPropertyName="Is exempt from sales tax;"
Calculator settings
- ExemptCustomPropertyName (string; default="")
Name of the custom property used to identify child order lines that should be excluded from the group total amount when calculating the relative price. If specified, any child order line with this custom property set will be excluded from the base amount calculation. If not specified (empty), the calculator uses the default behavior (includes all child order lines except the current one and lines with relative prices).
Example:
The Sales tax line is 10% from the Uplift line excluding the Airport Flowage fee.
Configuration:
- Edit Fuel Sales Tax product and assign this calculator.
- In the settings box enter
ExemptCustomPropertyName=Is exempt from sales tax;
3. Edit the Airport Flowage Fee product and Assign the custom value Is exempt from sales tax | yes
Important Notes
- Purpose: Calculates a relative price (percentage-based) based on the group total amount, excluding certain child order lines marked with a custom property. Used for scenarios like sales tax calculations where some products in a group should be exempt.
- Use case: Typically used for sales tax or similar charges where you want to calculate a percentage on the group total, but exclude certain exempt products.
- Custom property: The custom property must exist and be assigned to the products/order lines that should be exempted from the calculation.
- Price agreement: The calculator requires a relative price agreement (percentage-based) for the product, similar to the Order Surcharge Calculator.
Comments
0 comments
Please sign in to leave a comment.