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).

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

  1. 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.
  2. 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)

  1. 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.
  2. 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 Cash OR (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)

  1. Create button Cancel - Cash Deal. Condition: ((Process Block: Contract) Custom Field: Financing Details-Financier EQUAL Cash OR (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).
  2. Add its action: Set block status → Canceled.
  3. 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)

  1. 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

  1. 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

  1. Remove the Financier = Cash rule from Create NTP block (auto).
  2. 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

References

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.