The pricing engine (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ency07/B2B/llms.txt
Use this file to discover all available pages before exploring further.
src/utils/pricing.ts) generates budgetary cost estimates for industrial ventilation projects. It produces min/max price ranges in both COP (Colombian Peso) and USD using a fixed exchange rate, urgency multipliers, and volume scaling.
Exchange Rate
src/lib/constants.ts. This is the single source of truth for COP↔USD conversion across the entire codebase. The re-export in src/utils/pricing.ts is deprecated — always import directly from @/lib/constants.
Base Prices by Service
Defined inBASE_PRICE_BY_SERVICE:
| Service | Base Price (COP) |
|---|---|
fabricacion | 1,200,000 |
venta | 800,000 |
mantenimiento | 300,000 |
reparacion | 500,000 |
default | 500,000 |
Urgency Multipliers
Defined inURGENCY_MULTIPLIERS:
| Urgency | Multiplier | Effect |
|---|---|---|
alta | 1.35 | +35% |
media | 1.10 | +10% |
baja | 1.00 | No change |
default | 1.00 | No change |
Volume Modifier
For every 100 cubic meters of project volume, the base price increases by 5%:Price Deviation Range
A ±15% range (DEVIATION_FACTOR = 0.15) is applied to the estimated total to produce the budgetary min/max band:
Exported Functions
estimatePrice(serviceType, urgency, volumeCubicMeters)
PriceEstimation interface:
volumeCubicMetersis clamped between 0.001 and 10,000,000 m³. Values outside this range are adjusted and a warning is logged viaconsole.warn.- The urgency multiplier is capped at 2.0, regardless of the value looked up from
URGENCY_MULTIPLIERS.
Usage Example
These are budgetary estimates only — ±15% deviation. They are presented to leads during the wizard to qualify interest, not as final commercial offers.