ZT-609 · Cash projects never reach Finalized
| Status | Done |
| Ticket | ZT-609 |
| Requested by | Michael Lowry (2026-11-13) |
| Made by | Michael Lowry (control 284 and rules 4466/4471, 2026-11-13). Requested by Michael Lowry. |
| Date made | 2026-11-13 |
| Sections affected | 01 · Project level; 04 · Funding (Cash Funding) |
| Project types | Residential (cash jobs). R&R roof-only jobs use their own control and aren't affected. |
Request
Cash projects never get finalized. The project-level auto Set project status: Finalized only looks at the M2 Funds Received field. That field is set only by the financier M2 Funding block, which cash projects don't have.
Review
Checked 2026-11-13 against the section docs (generated from production 2026-10-26) and the ZT-35 and ZT-37 reviews (live checks on 2026-11-12). Phoenix wasn't connected in this session, so the live condition and the count of stuck cash projects still need to be confirmed before the build.
- Statuses and controls: Set project status: Finalized (project level, Residential, auto, not timed):
(Project) Custom Field: Project Milestones-System Energized IS NOT NULLand(Project) Custom Field: Funding Milestones-M2 Funds Received IS NOT NULL, not Canceled, not Cancellation in Progress. Action: project → Finalized. - Why cash projects stick: M2 Funds Received (project) is set only by Funding Received on the M2 Funding block. Cash projects get a Cash Funding block instead (created by Create Cash Funding Block (auto) when Financier or Purchase Mode is Cash), which records M2 Invoice Payment Received on the block and Cash Milestones - M2 Invoice Payment Received on the project. So cash projects stay at Finalization forever.
- Best signal for "cash fully paid": the Cash Funding block reaching Complete. It's better than the M2 invoice date because some cash jobs close without an M2 payment: AHA jobs complete at M1, finance's one-payment workaround (ZT-35 examples 5919, 6602), and ZT-35's planned Paid in Full path. 65 Cash Funding blocks were Complete as of 2026-10-26.
- Downstream: Finalized feeds pay and reporting (finalized counts). Other controls exclude Finalized (Permit Expiring, Set Setter Pay Milestone, Finalization autos), so finalizing stops them, which is intended.
- Risk, mixed projects: 18 projects have both an M0 and a Cash Funding block (ZT-500). If one of them is really financed and its Cash Funding block is Complete, it could finalize before the financier's M2. Check those in Phoenix before the build.
- Projects in flight: the control is auto, not timed, so it only runs when the project is saved. Cash projects already sitting at Finalization won't move on their own after the condition changes. They need a save or MCP - Finalize.
- Related: ZT-37 plans to make this same control timed (nightly). Build these two together or one after the other, and don't overwrite each other's edits. ZT-35 (Cash Funding paid in full), ZT-500 (Cash vs M0).
- Messages, queues, integrations: the control sends no messages and Finalized has no queue. No NetSuite or financier step reads this control.
Admin checklist
Before you start
- Claude lists, from Phoenix: cash projects at Finalization with System Energized filled and a Complete Cash Funding block, and the 18 projects with both M0 and Cash Funding blocks. Finance confirms none of them is waiting on a financier M2.
Build
2. [x] Create rule (Process Block: Cash Funding) System Data: Process Block Object Status EQUAL Complete (Fail if none exist = true), or reuse it if it already exists.
3. [x] Open the project-level control Set project status: Finalized. Change its condition to: (Project) Custom Field: Project Milestones-System Energized IS NOT NULL AND ( (Project) Custom Field: Funding Milestones-M2 Funds Received IS NOT NULL OR (Process Block: Cash Funding) System Data: Process Block Object Status EQUAL Complete ) AND NOT (Project) System Data: Project Object Status EQUAL Canceled AND NOT (Project) System Data: Project Object Status EQUAL Cancellation in Progress. Leave the action (project → Finalized) and the flags as they are.
4. [x] Finalize the stuck cash projects confirmed in step 1, with MCP - Finalize or by saving each project.
Test 5. [x] On test project 28349: open a Cash Funding block, set it to Complete, fill System Energized, and set the project to Finalization. Save. The project should go to Finalized. Put 28349 back to Canceled and cancel the test block.
New SOP
- Finance: no change. Close the Cash Funding block as you do now. Once it's Complete and the system is energized, the project goes to Finalized by itself.
- Finalization team: cash jobs no longer sit at Finalization after energization. Tell KAJ about any that do.
Rollback
- Put the Set project status: Finalized condition back to System Energized AND M2 Funds Received (not Canceled / Cancellation in Progress).
- Projects finalized by the change stay Finalized. Move any that shouldn't be back by hand.
Step 1 list (Phoenix, 2026-11-13)
- Cash, at Finalization, energized, Cash Funding Complete: 20595 Linda Norton-smith, 22548 James Crickenberger, 22855 Michael Staten, 21117 Nathan Buck (also has M0 Approved and M2 Canceled; financier "Cash / Expired Financing").
- At Finalization with Cash Funding Complete but no System Energized (the control won't finalize these): 23099, 23361, 27269.
- 18 projects with both M0 and Cash Funding: 1740, 3575, 3932, 6730, 6973, 9605, 12073, 21117, 21494, 21649, 21773, 22186, 23097, 25485, 26147, 26198, 27051, 27269. Michael: leave them where they are. Watch 26147 William Newton (ADD-ON): Cash Funding Complete and M0 Approved, so it will finalize once energized.
Config check
Checked 2026-11-13 in Phoenix.
- First build (17:20 UTC) was wrong. The new rule 4466 had Fail if none exist = false, so it passed on projects with no Cash Funding block. Any energized financed project without M2 Funds Received met the condition: 180 open projects were exposed (169 at Finalization). One was finalized early: 27305 Arthur Ray (M2 at Pending Approval), at 17:39 UTC on a save by Jovelyn Noche.
- Fixed at 17:46 UTC by Michael Lowry: the control now uses new rule 4471
(Process Block: Cash Funding) System Data: Process Block Object Status EQUAL Complete (Fail if none exist = true). The condition is: System Energized AND NOT Canceled AND NOT Cancellation in Progress AND (M2 Funds Received OR rule 4471). Still auto and not timed; action unchanged. 27305 moved back to Finalization by Michael (confirmed in production at 17:47 UTC). No other project went to Finalized between 17:39 and the fix. - Cash path works: 17330 Ryan Walsh finalized on its own at 17:20 UTC (cash, energized, Cash Funding Complete).
- Old rule 4466 is no longer used by any control. Archive it so it isn't reused.
Stuck projects finalized (step 4)
On 2026-11-13, with Michael's go-ahead, Claude ran MCP - Finalize (control 1434) through the albatross-write-mcp connector on 20595, 22548 and 22855 (17:51 UTC), then 21117 (17:54 UTC) once Michael confirmed it. All four now show Finalized. The other projects with both M0 and Cash Funding blocks were left as they are, at Michael's request.