ZT-232 / ZT-618 · Service Payment block, Service Work routing, Service Only Finalized
| Status | Done |
| Ticket | ZT-232 (includes ZT-618) |
| Requested by | Service and Finance (Jenni Budd, AR). ZT-618: Service Work blocks stuck in Disposition Remaining Work dropped out of the queues |
| Made by | KAJ Jacobs (Albatross audit data, user 2284): Service Payment block and queues 2026-11-13. Routing (ZT-618) 2026-11-16. Payment hand-off edits 2026-11-17 15:29–20:44 UTC. Service Only Finalized (auto) and the Cancel lock 2026-11-18 15:28–15:55 UTC |
| Date made | 2026-11-13 to 2026-11-18 |
| Sections affected | 11 · Service, 01 · Project level |
| Project types | Residential (Service Work); the Finalized auto is Service Only scope |
Request
- ZT-232: Revenue service jobs need a quote or invoice and payment before anyone is scheduled. Service Only projects need a clean end, with the project going to Finalized.
- ZT-618: Service Work blocks sitting in Disposition Remaining Work dropped out of the Ready to Schedule and Pending Service Work queues.
ZT-232 took over all Service Work changes on Nov 17. Recorded on 2026-11-18 from KAJ's chat notes and checked against Phoenix. The 2026-11-17 "in progress" note in section 11 is replaced by this record.
Review
- Service Payment is a new block for Jenni Budd (AR) and reuses the invoice queues. While it runs, Service Work waits in Pending Service Payment (On Hold). That status is deliberately in no queue, so Jenni's queues don't list the job twice.
- Field Audit is only required for Service Only scope. Installed customers keep the old direct buttons from Disposition Initial Work. Service Contract Signed must be filled before the first appointment is created.
- Create initial appointment (auto) (374) now needs "no open Service Appointment": rule 4496 checks ACTIVE visits and rule 4497 checks ON HOLD visits. Closed visits (Complete, Canceled, Exception) don't block it.
- Why: Service Payment Paid (auto) (1684) creates the appointment itself, and its reset of 374 was removed.
- On test project 43488, No Open Visits → Disposition Remaining Work (auto) (1702) ran before 374 and bounced the block. The guard on 374 stops the duplicate visit found on 43492.
- ZT-618 routing:
- The "block → Disposition Remaining Work" actions were removed from the Service Appointment and RMA Replacement cancel and audit-passed buttons. Auto 1702 now does that when no visit is open.
- From Disposition Remaining Work, Service Only jobs go back through Field Audit (Send to Field Audit) instead of straight to payment.
Admin checklist
As built.
Service Payment block. Statuses: Quote Needed and Ready to Send Invoice (active); Pending Quote Approval and Pending Invoice Payment (on hold); Complete; Canceled.
- Buttons: Quote Sent, Quote Approved, Quote Declined (→ Canceled), Invoice Sent, Payment Received (→ Complete) and Cancel.
- Autos: Notify Finance - Payment Needed and Notify Service - Payment Received.
Queues: Service Quote Needed and Pending Service Quote Approval (new), plus the existing Ready to Send Invoice and Pending Invoice Payment, wired to Service Payment (2026-11-13).
Service Work › Needs Quote (1682) and Needs Truck Roll Invoice (1683).
- Shown for Revenue jobs at Ready for Field Audit Review with the details filled, or at Disposition Initial / Remaining Work for non-Service-Only jobs.
- Each creates Service Payment (at Quote Needed or Ready to Send Invoice), sets Service Work to Pending Service Payment, and re-arms the two payment autos.
Service Payment Paid (auto) (1684): when the main Service Payment is Complete and Service Work is Pending Service Payment, set Service Work to Ready to Schedule, create a Service Appointment at Ready to Schedule, and notify.
Service Payment Canceled (auto) (1685): when the main Service Payment is Canceled, set Service Work to Ready for Field Audit Review.
Send to Field Audit (1706): Service Work Disposition = Needs a Site Visit, at Disposition Initial or Remaining Work, and Service Contract Signed filled for Service Only jobs. Sets Ready for Field Audit Review and notifies.
Ready for Scheduling (1167): Warranty or Pre-warranty jobs at Ready for Field Audit Review with the details filled, or non-Service-Only jobs at Disposition Initial Work. Sets Ready to Schedule and re-arms 374.
Create initial appointment (auto) (374): Ready to Schedule, Service Contract Signed (Service Only), and no ACTIVE or ON HOLD Service Appointment.
No Open Visits → Disposition Remaining Work (auto) (1702), plus the ZT-618 changes to the appointment buttons (2026-11-16).
Queue Verify Correction Work Complete: add Service Work at Ready for Field Audit Review, with project status ACTIVE or the seven named holds (2026-11-16 21:40 UTC). Queue Pending Service Work, RMA Replacement wiring: add block base status ON HOLD and project base status COMPLETE, the same as the Service Appointment wiring (2026-11-16 19:05–19:17 UTC).
Service Work › Cancel (1071): not allowed while the block is in Pending Service Payment (2026-11-18 15:55 UTC).
Project level › Service Only Finalized (auto) (1716). Fires when:
- Scope = Service Only, the main Service Work is Complete, and no Service Work is open (Disposition, Pending, Ready to Schedule, Field Audit Review or Pending Service Payment);
- no Service Payment is open;
- the project isn't Canceled or in Cancellation in Progress (the same exclusions as Set project status: Finalized).
It then sets the project to Finalized. Its four rules are new (4653–4656).
New SOP
- Service (triage):
- Revenue job: click Needs Quote or Needs Truck Roll Invoice. The job waits in Pending Service Payment, and no one schedules it until it's paid.
- Service Only job that needs a visit: Send to Field Audit.
- Warranty job: Ready for Scheduling.
- Finance (Jenni Budd): work the new Service Payment blocks in Service Quote Needed, Pending Service Quote Approval, Ready to Send Invoice and Pending Invoice Payment.
- When you click Payment Received, Service Work goes to Ready to Schedule and the appointment is created.
- Quote Declined or Cancel sends the job back to Field Audit review.
- Field Audit: Service Only jobs at Ready for Field Audit Review appear in Verify Correction Work Complete.
- Everyone: Service Work can't be canceled while payment is pending. Cancel the Service Payment first. Service Only projects finalize by themselves once Service Work closes.
Rollback
- Put back the reset of 374 on 1684 and remove 374's "no open visit" rules.
- Archive 1682–1685, 1706 and 1716, and archive the Service Payment queue wiring.
Config check
Checked in production (Phoenix) on 2026-11-18.
- Matches the notes:
- Steps 1–4 and 6–12 match the live configuration.
- 374's two rules check different base statuses (ACTIVE and ON HOLD). They aren't duplicates. The earlier note in this repo that said so was wrong.
- 1684 creates the Service Appointment itself (Ready to Schedule) and no longer resets 374.
- Quote declined or canceled: sends Service Work to Ready for Field Audit Review (1685). Intended (KAJ, 2026-11-19): this is the Nov 16 routing, and the Nov 13 note that said Disposition Initial Work is superseded.
- Pending Service Work queue: the two rows added 2026-11-16 are on the RMA Replacement wiring only: block base status ON HOLD and project base status COMPLETE, matching the Service Appointment wiring. The project holds are still the seven named ones, so Legal Hold jobs stay out (ZT-544 holds). An earlier version of this record said project ON HOLD was added; that was wrong. KAJ also found no Legal Hold project with a Service Appointment or RMA Replacement at Pending Event (2026-11-19).
- Tests (from the notes):
- Done on ZZ TEST Service Only projects: 42815, 43385, 43386, 43488 (bounce found), 43489 (Ready for Scheduling passed) and 43492 (duplicate visit found, then fixed).
- Service Only Finalized, checked in project status history on 2026-11-18:
- 43642 and 43644 went Qualification → Finalized through 1716 (15:50–15:51 UTC) with Service Work Complete. Pass.
- 43645 (Service Work at Ready to Schedule) and 43648 (Service Work canceled) weren't finalized. Pass.
- All four were then canceled (15:58 UTC) as clean-up.
- No Solar-scope test was found.
- The Cancel lock (1071) is ZT-232. It needs "not Service Work = Pending Service Payment" (rule 4470, built 2026-11-13 for Service Payment).
- No backfill needed: per KAJ's check, only 18 projects have Project Scope = Service Only, and all are ZZ TEST and Canceled. 1716 applies to new projects. (Not re-counted here.)
- Open:
- The walkthrough with Jenni and Zac.
- Clean-up of the test projects.