ZT-501 · M1/M2 Funding: a way out of Lost Funding

Status Done
Ticket ZT-501
Requested by Claude's Oct 27 config audit (for Michael Lowry)
Made by KAJ Jacobs (Albatross audit data, user 2284), 2026-11-16 21:36–22:54 UTC
Date made 2026-11-16
Sections affected 04 · Funding
Project types Residential

Request

Once an M1 or M2 Funding block is set to Lost Funding, nothing moves it anywhere else. The M1 auto meant to release it, Lost Funding Resolved, has no condition and no actions. M2 has no release control and no Lost Funding Resolved field. So jobs that get new financing can't be resubmitted, and jobs that are written off never close.

In practice Lost Funding is used for more than expired financing. The M1 button is always-on, so its "Financier = Expired Financing" condition is ignored, and Funding uses it for LightReach, Solar Leasing and even cash jobs. Most jobs in Lost Funding now have Financier = Solar Z, which looks like the replacement financier for stranded jobs. Solar Z can only be submitted from Resubmit, Confirm Funding Details or Funding Manager Review and Submit, so those jobs are stuck.

Re-checked 2026-11-12: still broken. No control on M1 or M2 Funding that touches Lost Funding has changed since Aug 27.

Review

Checked 2026-11-12.

Likely cause: The Lost Funding release was started on Aug 27 (field, two rules, empty control) but never finished, and M2 never got one. The original design (ZT-7) planned an "Expired Financing" flag and two buckets for Finance (new financing then invoice, or credit memo then new financing); only the "park it" part was built.

Admin checklist

Before you start

  1. Michael with Funding and Finance (Kalen Larsen built the buttons; Jenn per ZT-7) decide: (a) Lost Funding means "the financier won't fund this job", for any financier, not only Expired Financing; (b) its two exits are new financing found → Resubmit and written off → Canceled. This checklist assumes both.
  2. Funding confirms Solar Z is the new financier for stranded jobs, so the 23 open Solar Z jobs in M1 Lost Funding should go back to Resubmit.

M1 Funding

  1. Create field Lost Funding Reason (Drop Down - Single Select: Financing Expired, Financier Declined, Customer Won't Re-sign, Other) and add it to M1 Funding › Lost Funding, above Lost Funding Resolved.
  2. Create field Lost Funding Written Off (Date) and add it to M1 Funding › Lost Funding, below Lost Funding Resolved.
  3. Lost Funding button: untick Always enabled, and replace its condition with (Process Block: M1 Funding) Custom Field: Lost Funding-Lost Funding Reason IS NOT NULL (new local rule).
  4. Lost Funding button: add action Set Lost Funding Resolved (OSC 4504) = null, before the Reset action, so a block sent back to Lost Funding doesn't release straight away.
  5. Lost Funding Resolved (1207): rename to Lost Funding Resolved (auto) and set its condition to (Process Block: M1 Funding) System Data: Process Block Object Status EQUAL Lost Funding (Fail if none exist = false) AND (Process Block: M1 Funding) Custom Field: Lost Funding-Lost Funding Resolved IS NOT NULL AND NOT (Process Block: Contract) Custom Field: Financing Details-Financier EQUAL Expired Financing.
  6. Lost Funding Resolved (auto): add action Set block status → Resubmit.
  7. Create button Lost Funding - Written Off. Condition: the Lost Funding status rule from step 7 AND (Process Block: M1 Funding) Custom Field: Lost Funding-Lost Funding Written Off IS NOT NULL (new local rule).
  8. Lost Funding - Written Off: add action Set block status → Canceled. Place it in M1 Funding › Lost Funding.

M2 Funding

  1. Create screen section Lost Funding on M2 Funding (after Rejection Details) and add Lost Funding Reason, Lost Funding Resolved (Date) and Lost Funding Written Off, as in steps 3–4.
  2. Move the M2 Lost Funding button into the new section; replace its condition with (Process Block: M2 Funding) Custom Field: Lost Funding-Lost Funding Reason IS NOT NULL (new local rule).
  3. Create auto Lost Funding Resolved (auto) on M2 (tick Allow Reset Run Flag) with the M2 versions of the step 7 rules (new local rules on M2), action Set block status → Resubmit, placed in M2 › Lost Funding.
  4. M2 Lost Funding button: add actions Set M2 Lost Funding Resolved (new field, OSC assigned when created) = null, then Reset Other Control → M2 Lost Funding Resolved (auto).
  5. Create button Lost Funding - Written Off on M2 as in steps 9–10, placed in M2 › Lost Funding.

Test (auto control changed, so staging first if KAJ wants)

  1. On test project 28349 (or staging): put an M1 block in Lost Funding with a reason, fill Lost Funding Resolved, save. It moves to Resubmit. Repeat with Lost Funding Written Off; it moves to Canceled. Same on M2. Note the earlier caution that a reset auto may not fire a second time (ZT-531).

Clean-up

  1. Claude lists the 72 open M1 and 10 open M2 Lost Funding jobs with financier and project status. Funding fills Lost Funding Resolved (new financing in place) or Lost Funding Written Off on each. The 52 M1 and 111 M2 Lost Funding blocks on Finalized or Canceled jobs get Lost Funding Written Off (Finance to confirm), so they leave the Lost Funding queue.

New SOP

Funding:

  1. To park a job, pick a Lost Funding Reason, then click Lost Funding (M1 or M2 Funding).
  2. When new financing is in place (for example Solar Z), update Financier on the Contract, then fill Lost Funding Resolved and save. The block moves to Resubmit and shows in the Resubmit queue; submit as usual.
  3. Written off: dropped. A Lost Funding job waits ON HOLD until it is resolved.
  4. Pick the reason and save before Lost Funding lights up; after clicking it, reload to see Lost Funding Resolved cleared.

Finance: no change (the written-off path was dropped).

Rollback

  1. Clear the condition and action on M1 Lost Funding Resolved (auto); archive M2 Lost Funding Resolved (auto) and both Lost Funding - Written Off buttons.
  2. Re-tick Always enabled on M1 Lost Funding and restore the Expired Financing condition on both buttons.

How to verify

Claude checks in Phoenix that both release autos have the condition, action and placement above, both Lost Funding buttons need a reason and clear the resolved date, and the new fields sit in the Lost Funding sections. A week after the clean-up, Claude re-counts Lost Funding blocks; the open-project counts should be near zero.

Open questions

References

Config check

Checked in production (Phoenix) on 2026-11-17. Built differently from the checklist above, by KAJ's decision: no Written Off field or button (steps 4, 9, 10, 15 dropped). Lost Funding means "this financier won't fund the job", for any financier, and the only exit is resolved → Resubmit.