Jesse Myles
Portfolio CEO
Next step
Version 2 waits for the Business manager's sign-off. Version 1 keeps calculating the number until then; approval recalculates it.
Waits for the Business manager's sign-off. Count business days, so a weekend alone does not flag a lead.
SELECT count(*) FROM canonical.lead WHERE company_id = :company AND last_contact_at IS NULL AND business_days(created_at, :as_of) >= 3
canonical.lead
Calculates the number shown today. It never changes; an edit becomes a new version.
SELECT count(*) FROM canonical.lead WHERE company_id = :company AND last_contact_at IS NULL AND created_at < :as_of - interval '3 days'
canonical.lead
Newest first. Every number names the version that calculated it.
v2b72c915
Count business days, so a weekend alone does not flag a lead.
Proposed: Director of Operations, 13 Nov
Signed off: Waits for the Business manager
v13f9c2ab
First version, carried over from the JMOS data dictionary
Proposed: Director of Operations, 24 Sept
Signed off: CFO, 2 Oct
1–2 of 2