e-commerce and retail

Seller Fees

This Decision Table calculates Seller Fees based on the car price and special fees.

DecisionRules

David Škarka

Template author

This Decision Table calculates Seller Fees based on the car price and special fees.

Solution components
  • A Decision Table named 'Seller Fees' calculates the total fee, special fees, and assigns a fee segment based on the given car price.

  • The logic evaluates the carPrice.price against "Minimum Car Price" and "Maximum Car Price" columns to determine which rule row applies.
  • For each validated price range, the table executes specific calculation functions:

    • Fee to Pay: Calculates the total fee using a formula (typically a percentage of the car price plus a fixed constant, rounded to 2 decimal places).

    • Special Fees: Calculates the special fee result using a percentage of the input specialFees plus a fixed constant.

    • Fee Segment: Assigns a specific segment ID (e.g., "1", "2", "16") corresponding to the identified price bracket.

Use this Decision Table to automatically compute seller transaction costs dynamically as car prices vary.

Check iconA checkmark inside a circle signifying "yes"Minus iconA minus inside a circle signifying "no"PROS IconA plus symbol representing positive aspects or benefits.CONS IconA minus symbol representing negative aspects or drawbacks.

More Templates

See Other Templates