ZT-496 · NetSuite: send cash deals; retire the Deal Review NetSuite autos
| Status | Done |
| Ticket | ZT-496 |
| Requested by | Claude's Oct 27 config audit (for Michael Lowry) |
| Made by | KAJ Jacobs (Albatross audit data, user 2284), 2026-11-16 21:23–21:24 UTC |
| Date made | 2026-11-16 |
| Sections affected | 01 · Project level, 03 · Survey and deal review, 04 · Funding |
| Project types | Residential and Battery Only (cash deals) |
Request
Cash deals never get a NetSuite customer. The only working send is the project-level timed Send to Netsuite (auto), which needs M0 (NTP) Approved, a financed-deal milestone. Cash deals reach M0 through M0 Invoice Payment Received instead, so most never qualify. Finance has to set them up by hand, or they're missing from NetSuite.
Re-checked 2026-11-12: partly fixed. The two broken Deal Review autos, Send to Netsuite (Cash) (auto) and Send to Netsuite (Non Cash) (auto), were taken off the Deal Review screen by Michael Lowry (Non Cash on 2026-05-05, Cash on 2026-09-25), so they can't fire. What's left: cash deals still have no send path, and three dead controls remain.
Review
Checked against production through Phoenix on 2026-11-12.
- Send to Netsuite (auto) (project level, auto + timed, on Autotrigger Project Actions; last edited by Michael Lowry 2026-09-28). Condition:
(Project) Custom Field: Funding Milestones-M0 (NTP) Approved IS NOT NULLAND NOT(Project) Custom Field: Integration Detail-Netsuite Customer Created IS NOT NULLAND ((Project) System Data: Project Object Status EQUAL EngineeringOR(Project) System Data: Project Object Status EQUAL Installation Prep). Actions: Send to NetSuite; set Netsuite Customer Created (OSC 4975) = now(). - Deal Review › Send to Netsuite (Cash) (auto) tests
Financier EQUAL Cashand has no status check. Send to Netsuite (Non Cash) (auto) is the old financed path. Both are unplaced. - M0 (NTP) Funding › Send to Netsuite (Non Cash) (auto) is an empty shell: no condition, no actions, not placed.
- Cash contracts (Purchase Mode = Cash, Contract blocks created since 2026-01-01): 16 projects, only 1 with Netsuite Customer Created. Live ones without it:
- 28917 (Installation Prep, cash M0 paid): the fix sends it on the next nightly run.
- 28250 (Qualification): sent once it reaches Engineering or Installation Prep with cash M0 paid.
- 18439 (Finalized), 21117, 23361, 27269 (Finalization), 26147, 27708 (Inspection): past the status window, so Finance creates them by hand.
- The Oct 27 audit found 9 contracts with Financier = Cash but Purchase Mode blank (not re-counted). They won't match a Purchase Mode test until Sales Ops fills Purchase Mode.
Likely cause: The cash path was built on Deal Review using Financier, then abandoned. The working send moved to the project level, written for financed deals only.
Admin checklist
Before you start
- Finance confirms that cash deals need a NetSuite customer, that M0 Invoice Payment Received is the right trigger, and that Purchase Mode = Cash is the cash test.
Build
- Project-level control Send to Netsuite (auto): change
(Project) Custom Field: Funding Milestones-M0 (NTP) Approved IS NOT NULLto ((Project) Custom Field: Funding Milestones-M0 (NTP) Approved IS NOT NULLOR ((Process Block: Contract) Custom Field: Financing Details-Purchase Mode EQUAL CashAND(Project) Custom Field: Cash Milestones-M0 Invoice Payment Received IS NOT NULL)). Keep the NOT Netsuite Customer Created rule, the Engineering / Installation Prep rules and both actions. All three rules already exist and are global. - Deal Review: archive Send to Netsuite (Cash) (auto).
- Deal Review: archive Send to Netsuite (Non Cash) (auto).
- M0 (NTP) Funding: archive Send to Netsuite (Non Cash) (auto).
Test and clean-up
- Test in staging first (timed auto): a cash project in Engineering with M0 Invoice Payment Received filled is sent on the next nightly run, and Netsuite Customer Created is stamped. In production, check that 28917 is stamped the morning after the change.
- Finance creates NetSuite customers by hand for 18439, 21117, 23361, 26147, 27269 and 27708, then fills Netsuite Customer Created (project › Integration Detail) on each.
- Sales Ops fills Purchase Mode on cash contracts where it's blank.
New SOP
Finance: cash deals now reach NetSuite on their own overnight, once the project is in Engineering or Installation Prep and M0 Invoice Payment Received is filled. Check Netsuite Customer Created on the project before creating a customer by hand.
Sales Ops: always fill Purchase Mode on the Contract. A cash deal with Purchase Mode blank isn't sent.
Rollback
- Put the condition of Send to Netsuite (auto) back to
M0 (NTP) Approved IS NOT NULLalone. - Un-archive the three controls (all unplaced, so nothing runs).
How to verify
Claude checks in Phoenix: the new condition and unchanged actions on Send to Netsuite (auto); the three controls archived; Netsuite Customer Created stamped on 28917 after the next nightly run, and on the 6 hand-created projects.
Open questions
- Cash M0 can be paid after Installation Prep. Should the status window be wider for cash deals, or is a hand send fine for those?
- Was the NetSuite customer for cash deals ever created another way (by Finance in NetSuite directly)? If so, step 7 may only need the date filled.
Config check
Checked in production (Phoenix) on 2026-11-17.
- Send to Netsuite (auto) (482, project level, auto + timed): not Netsuite Customer Created AND project in Engineering or Installation Prep AND (M0 (NTP) Approved OR ((Financier = Cash OR Purchase Mode = Cash) AND Cash M0 Invoice Payment Received)). Actions: Send to NetSuite; Netsuite Customer Created = now().
- Archived: Deal Review Send to Netsuite (Cash) (auto) (616) and Send to Netsuite (Non Cash) (auto) (617), and M0 (NTP) Funding Send to Netsuite (Non Cash) (auto) (837, empty).
- Per KAJ's notes, Netsuite Customer Created was pre-filled on 28917 so it isn't sent again; not re-checked.
- Morning check (2026-11-18, Phoenix): 28917 (Financier Cash, Purchase Mode Cash) has one Netsuite Customer Created stamp, 2026-11-16 21:16 UTC, never re-stamped, so 482 didn't send it again. The 26 projects stamped since are all Financier LightReach with Purchase Mode Lease or PPA: no cash project was sent unexpectedly. The send history (control_history) timed out, so this rests on the stamps. KAJ moved the ticket to Done on 2026-11-18 with a comment.