# Taqeef — B2B Quoting That Stopped Producing Wrong Prices

> Taqeef's B2B quoting had 40+ pricing permutations across customer tiers, volume bands, and product categories — all implemented as hardcoded conditions spread across the codebase. Wrong quotes went out regularly. We replaced it with a configurable pricing rule engine and it's been clean ever since.

## Project context

- Client: Taqeef
- Industry: HVAC / B2B Retail
- Year: 2024

## Challenge

40+ pricing permutations implemented as scattered if/else conditions. Logic was inconsistent across cases, and incorrect quotes were sent to clients weekly. Each error either cost margin or damaged client trust — sometimes both. The warehouse integration was also tightly coupled with no versioning, meaning any warehouse system upgrade required synchronized changes across both systems.

## Solution

Pricing rule engine with a centralized rule registry. Each dimension is a discrete rule applied in priority order. Admin panel lets sales ops update rules without developer involvement. Full line-item breakdown on every quote — clients see exactly what rules applied. Versioned API contracts for warehouse integration — upgrades on either end are independent.

## Services

- Web Development

## Published results

- 0 Incorrect quote incidents (post-launch)
- 40+ Pricing rules supported (configurable by staff)
- 0 Rule changes requiring devs (admin panel self-serve)
- maintained API stability through upgrades (2 warehouse upgrades)

## Benefits

- Rule engine — 40+ permutations with zero code duplication
- Staff can update pricing rules without developer time
- Full audit trail on every quote — transparent to clients
- Versioned APIs stable across warehouse system upgrades

## Source and contact

- Canonical project page: https://qualityx.co/en/portfolio/taqeef-b2b-ecommerce
- Discuss a related project on WhatsApp: https://wa.me/905392376734
