primaryCharge / charge.isPrimary)—staff should not be blocked because the workorder charge list has no control.charge.isPrimary exists on attik-backend/src/models/chargeSchema.ts and surfaces in the UI via ChargeChips (attik-frontend/.../ChargeChips.tsx) on each charge row.isPrimary when detecting changes (EditChargesModal.tsx)—primary is editable there, not via a dedicated control on the Services & payments table on the workorder.RescheduleJobModal.tsx (primaryCharge) and Reports.tsx (mapping primary service for reports)—so which charge is primary has product impact beyond labeling.attik-frontend/src/app/tools/inspections/[id]/components/ServicesPayments.tsx — charge table renders inspection.charges but does not offer a primary toggle; ChargeChips only displays.attik-frontend/src/app/tools/inspections/[id]/components/EditChargesModal.tsx — where isPrimary is currently set in the service/charge editor.attik-frontend/src/app/tools/inspections/[id]/components/ChargeChips.tsx — current primary badge behavior.attik-frontend/src/app/tools/inspections/[id]/components/RescheduleJobModal.tsx — reads inspection.charges.find((c) => c.isPrimary).attik-frontend/src/app/tools/inspections/[id]/components/reports/Reports.tsx — charge.isPrimary used for service/report mapping.attik-backend/src/models/chargeSchema.ts — isPrimary field persistence; PATCH charge routes as used when saving from Edit charges.attik-backend/src/models/chargeSchema.tsattik-frontend/src/app/tools/inspections/[id]/components/ServicesPayments.tsxattik-frontend/src/app/tools/inspections/[id]/components/EditChargesModal.tsxattik-frontend/src/app/tools/inspections/[id]/components/ChargeChips.tsxPlease authenticate to join the conversation.
Planned
Main App
16 days ago
Linear
Get notified by email when there are changes.
Planned
Main App
16 days ago
Linear
Get notified by email when there are changes.