toBeInvoiced), so clients marked to be invoiced are not nagged to pay online.toBeInvoiced on the inspection). That flag means payment is not required to unlock reports when agreements are satisfied, and the job can be excluded from internal lists that filter out invoiced work (invoiced: false on inspection queries).invoiceApproved) can auto-set toBeInvoiced on new Attik jobs when the contact has a portal role with pay permission and invoice approval is enabled at scheduling time.toBeInvoiced (or invoiceApproved). Staff cannot build rules such as “do not send this payment reminder if the job is to be invoiced.”attik-frontend/src/components/conditions/templatingData.ts — inspection keys include paid, remainingBalance, etc., but not toBeInvoiced. Add a boolean condition entry following the same pattern as paid (e.g. display label such as “To be invoiced” / “Invoice terms”).Conditions component and inspectionConditionalKeys from templatingData.ts; new key should appear wherever inspection-level conditions are offered for email/SMS actions.toBeInvoiced is toggled in attik-frontend/src/app/tools/inspections/[id]/components/ServicesPayments.tsx; report/portal behavior uses it in getReportLockMessage.ts, ReportList.tsx, and attik-frontend/src/app/client/job/[slug]/page.tsx (sectionStatus.paid is still inspection.paid, independent of toBeInvoiced).invoiceApproved should also be a flow condition (per-contact “invoice approved” on ContactForm.tsx), or job-level toBeInvoiced alone is sufficient for v1.attik-backend/src/util/functions/actionFlows/attributePathResolver.ts — resolves inspection fields for evaluateConditions in conditionsResolver.ts. Add resolver for toBeInvoiced mirroring paid (boolean on inspection).toBeInvoiced exists on attik-backend/src/models/inspectionSchema.ts and is set/updated via attik-backend/src/routes/inspection.ts and createInspection.ts (from contact invoiceApproved + pay role at create).preferredContactMethod in emailBuilder/renderEmail.ts and actionFlows/renderSms.ts; no invoice check today.toBeInvoiced without company-configured flow conditions (this issue is about making the condition available, not changing every flow by default).checkReportAccess.ts).emailStatus / smsStatus subscribe flags on Action flow sends (separate gap).attik-frontend/src/components/conditions/templatingData.tsattik-backend/src/util/functions/actionFlows/attributePathResolver.tsattik-backend/src/util/functions/actionFlows/conditionsResolver.tsattik-backend/src/models/inspectionSchema.ts (toBeInvoiced)attik-frontend/src/app/tools/inspections/[id]/components/ServicesPayments.tsxattik-backend/src/util/functions/inspection/checkReportAccess.tsattik-backend/src/util/functions/inspection/createInspection.ts (invoiceApproved → toBeInvoiced at job create)Please authenticate to join the conversation.
Planned
Main App
12 days ago
Linear
Get notified by email when there are changes.
Planned
Main App
12 days ago
Linear
Get notified by email when there are changes.