| Field | Value |
|---|
| Phase | Phase 2: Forge |
| FWCR Category | Invoice-to-Cash |
| Owner | Product Team |
| Status | 🟡 Spec'ing |
| Linear: | BAY-12 |
This workflow handles the complete sales order-to-ZATCA clearance cycle for Phase 2. It ensures every invoice is cryptographically stamped by ZATCA before delivery to the buyer, with AI-powered error resolution for failed submissions.
Goal: Achieve >65% FWCR for Invoice-to-Cash by end of Phase 2.
| Role | Description |
|---|
| Sales Rep | Creates quotations and converts to Sales Orders |
| Accountant | Reviews, adjusts pricing, submits invoices |
| System | Generates ZATCA XML, calls API, attaches stamps |
| AI Assistant | Translates ZATCA errors into actionable guidance |
| Customer | Receives stamped invoice via email/PDF |
Postconditions
- Create/Edit Quotation
- Convert to Sales Order
- Review SO & Adjust
- Submit for ZATCA Clearance
- AI Error Resolution (if rejected)
- Generate PDF with stamp
- Create AR Entry
- Notify Customer
- Pre-validation of ZATCA fields
- Duplicate detection
- Error translation to plain English
| # | Criteria | Target |
|---|
| 1 | Invoice clears ZATCA | under 2 seconds |
| 2 | AI error message | actionable |
| 3 | PDF contains QR | scannable |
| Metric | Target |
|---|
| FWCR | 90% |
| Time-to-ZATCA | under 2 seconds |
Status: 🟡 Spec'ing
Last Updated: May 2026