ZT-500 · Funding: Cash vs M0 creation rules and Solar Z
| Status | Done |
| Ticket | ZT-500 |
| Requested by | Claude's Oct 27 config audit (for Michael Lowry) |
| Made by | KAJ Jacobs (Albatross audit data, user 2284), 2026-11-16 21:32–21:33 UTC |
| Date made | 2026-11-16 |
| Sections affected | 04 · Funding; 01 · Project level |
| Project types | Residential (and Battery Only) |
Request
Two things were reported on Oct 27.
(a) Cash vs M0. The project-level auto that opens Cash Funding fires when Financier = Cash or Purchase Mode = Cash. The auto that opens M0 (NTP) Funding only skips jobs with Purchase Mode = Cash. A job with Financier = Cash and an empty or non-cash Purchase Mode can get both blocks, so Finance (customer invoices) and Deal Review (financier NTP) could both chase payment. There is also no clean way to close an M0 block when a financed job switches to cash.
(b) Solar Z. Solar Z is a financier option, but the M0 buttons Details Confirmed and Documentation Uploaded don't list it, so a Solar Z job could never pass M0.
Re-checked 2026-11-12: (a) still open but low volume; (b) has no real impact. Solar Z is not used for new sales. It is the financier on 48 older jobs, 44 of which are parked in M1 Lost Funding, so the real Solar Z gap is the way out of Lost Funding (ZT-501) and M2, not M0.
Review
Checked 2026-11-12. Neither creation auto has changed since 2026-08-26 (KAJ Jacobs).
- Create Cash Funding Block (auto) (project level, 643, placed):
Contract Signedfilled AND NOTDeal Review Completefilled AND ((Process Block: Contract) Custom Field: Financing Details-Financier EQUAL CashOR(Process Block: Contract) Custom Field: Financing Details-Purchase Mode EQUAL Cash) AND NOT Service Only. Each Cash rule appears twice (two global rules share each description: ids 2126/433 and 2127/19). - Create NTP block (auto) (project level, 642, placed):
Contract Signedfilled AND NOT(Process Block: Contract) Custom Field: Financing Details-Purchase Mode EQUAL CashAND Project Sold on or before today AND project status Qualification AND M0 Submitted and Approved empty AND not Service Only. No Financier = Cash check. - Projects with both an M0 and a Cash Funding block: still the same 18 as on Oct 27 (none new). All live ones have M0 already Approved or Canceled: 9605 (Installation, Cash Funding at Pending M1 Invoice Payment), 26147 (Inspection), 26198 (Cancellation in Progress), 27051, 27269 and 21117 (Finalization). No live project has an open M0 next to a Cash Funding block.
- How it happens now: of the 12 jobs created in 2026 with Purchase Mode = Cash, 5 also have an M0 block. Create NTP block (auto) only fires while Purchase Mode is not Cash, so on these the M0 opened first and the job switched to cash later. Most older double-block jobs have Financier = Cash and Purchase Mode empty, which is the rule gap.
- Solar Z (
(Process Block: Contract) Custom Field: Financing Details-Financier EQUAL Solar Z, global) is still used only by M1 Funding Ready for AM Audit and M1 Submitted. Solar Z jobs: 48, newest created 2025-11-05, none with an open M0. 44 have M1 Funding in Lost Funding (23 on open projects) and 27 have M2 Funding in Lost Funding (3 open). M2 M2 Submitted has no Solar Z branch. - Same duplicated Cash test on project-level Battery Only - Open M1 Funding (auto) (1334), which is also not placed on any screen, so it never runs (only 2 Battery Only jobs have M1 Funding).
- Money: M0 Approved stamps M0 (NTP) Approved; Cash Funding stamps the cash invoice dates and the sales pay milestones. A double block can mean two "M0 paid" dates on one job.
- Project types: Residential (and Battery Only via 1334).
Likely cause: The two creation autos were built separately with different Cash tests. Jobs that switch to cash after the M0 opens have no step that closes the M0. Solar Z was added only to M1 for the stranded jobs.
Admin checklist
Before you start
- Finance (with Deal Review) confirms: is a job cash when either Financier = Cash or Purchase Mode = Cash (what Cash Funding uses today)? This checklist assumes yes.
- Finance checks the 6 live double-block jobs (9605, 26147, 26198, 27051, 27269, 21117): was M0 money really received from a financier, or only from the customer? Fix any wrong M0 (NTP) Approved dates by hand.
Stop new double blocks (Admin › Project › Controls)
- Create NTP block (auto): add NOT
(Process Block: Contract) Custom Field: Financing Details-Financier EQUAL Cash(global) next to the existing NOT Purchase Mode = Cash. - Create Cash Funding Block (auto): remove the duplicate Cash rules so the Cash group is just
(Process Block: Contract) Custom Field: Financing Details-Financier EQUAL CashOR(Process Block: Contract) Custom Field: Financing Details-Purchase Mode EQUAL Cash(one of each).
Close M0 when a job switches to cash (M0 (NTP) Funding)
- Create button Cancel - Cash Deal. Condition: (
(Process Block: Contract) Custom Field: Financing Details-Financier EQUAL CashOR(Process Block: Contract) Custom Field: Financing Details-Purchase Mode EQUAL Cash) AND the block is at Confirm Funding Details, Upload Funding Documentation, Pending Approval, Pending Missing Document Upload or Review Missing Documents Uploaded (create a local status rule with IN on M0 (NTP) Funding). - Add its action: Set block status → Canceled.
- Place it on M0 (NTP) Funding in the same section as Details Confirmed.
Solar Z (only after ZT-501 decides how stranded jobs leave Lost Funding)
- Funding names the M2 documents Solar Z needs. Then on M2 Funding › M2 Submitted, add a Solar Z branch: those M2 Checklist fields AND
(Process Block: Contract) Custom Field: Financing Details-Financier EQUAL Solar Z. No M0 change is needed for Solar Z.
Test
- On test project 28349: set Financier = Cash with Purchase Mode empty on a test Contract and save. No M0 (NTP) Funding block opens. (Cash Funding won't open either if 28349 has Deal Review Complete; that's expected.) Undo the Contract edit afterwards.
New SOP
Deal Review: when a financed job switches to cash and its M0 block is still open, click Cancel - Cash Deal on M0 (NTP) Funding. Finance then works the job in Cash Funding.
Finance: no change. Cash jobs should no longer also show up in M0 Audit.
Rollback
- Remove the Financier = Cash rule from Create NTP block (auto).
- Archive Cancel - Cash Deal.
How to verify
Claude re-reads controls 642 and 643 in Phoenix and checks the Cash tests match. Over the next month, Claude re-runs the "projects with both M0 and Cash Funding" query; no new project should appear. Claude checks the new button's condition and placement.
Open questions
- Is Solar Z a real financier Zeo will sell with again, or only the buyer of stranded jobs? If it will be sold again, Funding needs to name its NTP documents and Solar Z gets an M0 branch too.
References
- Change record: changes/2026-11-12-ZT-500-cash-m0-financier-rules.md
- Process doc: docs/sections/04-funding.md
- Related: ZT-501 (Lost Funding, where the Solar Z jobs are), ZT-35 (Cash Funding paid in full), ZT-496 (NetSuite for cash deals).
- When the change is made, bring this ticket to Claude in the
zeo-process-flowrepo so it is checked and recorded in the changelog.
Config check
Checked in production (Phoenix) on 2026-11-17. KAJ's decisions: a job is cash when Financier = Cash OR Purchase Mode = Cash; no Solar Z work; the "Cancel - Cash Deal" button was dropped; the 4 live jobs with both blocks (9605, 26198, 27051, 27269) are left as they are.
- Create NTP block (auto) (642): now has NOT Financier = Cash next to NOT Purchase Mode = Cash.
- Create Cash Funding Block (auto) (643): duplicate rules 2126 and 2127 removed; the cash group is Financier = Cash OR Purchase Mode = Cash.
- Ready for Funding (auto) (355), Ready for Funding (auto) - ESC (1213) and Ready for M2 Funding (auto) (1069) show as edited at 21:33 because they share that rule group; their logic reads "not (Financier = Cash or Purchase Mode = Cash)" and is unchanged in effect.
- Battery Only - Open M1 Funding (auto) (1334): archived (never placed, never ran).