src/routes/payroll.ts — Existing modifier loading pattern; capacity modifier will follow the same modifierSchema approach and needs a new modType for capacityThreshold.src/util/functions/schedulingHelpers/calculateServicePrices.ts — Core pricing engine; capacity modifier evaluation needs to be injected here alongside other modifier types.src/util/functions/schedulingHelpers/usePriceCalculation.ts — Pricing calculation hook used in the scheduling UI; must receive live capacity context to evaluate the threshold condition.src/util/functions/schedulingHelpers/requiredInfoModifierUtils.ts — Existing modifier evaluation pattern; capacity modifier evaluation should follow the same structure.src/util/functions/quote/createChargeObjects.ts — Charge object creation at confirmation; ensure the capacity modifier amount is captured and saved to the workorder charges.src/util/types/serverTypeCollection/services.ts — Service type definitions; needs a new capacityThreshold modifier type.tests/util/functions/calculateServicePrices.comprehensive.test.ts — Capacity modifier scenarios should be covered here.Please authenticate to join the conversation.
Triage
Main App
About 5 hours ago
Linear
Get notified by email when there are changes.
Triage
Main App
About 5 hours ago
Linear
Get notified by email when there are changes.