Skip to main content

Invoice-to-Cash Workflow

Metadata

FieldValue
PhasePhase 2: Forge
FWCR CategoryInvoice-to-Cash
OwnerProduct Team
Status🟡 Spec'ing
Linear:BAY-12

Overview

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.


Actors

RoleDescription
Sales RepCreates quotations and converts to Sales Orders
AccountantReviews, adjusts pricing, submits invoices
SystemGenerates ZATCA XML, calls API, attaches stamps
AI AssistantTranslates ZATCA errors into actionable guidance
CustomerReceives stamped invoice via email/PDF

Preconditions

  • Customer master exists with ZATCA-compliant fields
  • Products/Services configured with correct tax templates
  • ZATCA API credentials configured
  • OCI blob storage configured

Postconditions

  • Invoice cleared by ZATCA (cryptographic stamp)
  • PDF with ZATCA QR code attached
  • AR ledger entry created
  • Audit trail captured

User Flow

  1. Create/Edit Quotation
  2. Convert to Sales Order
  3. Review SO & Adjust
  4. Submit for ZATCA Clearance
  5. AI Error Resolution (if rejected)
  6. Generate PDF with stamp
  7. Create AR Entry
  8. Notify Customer

AI Features

  • Pre-validation of ZATCA fields
  • Duplicate detection
  • Error translation to plain English

Acceptance Criteria

#CriteriaTarget
1Invoice clears ZATCAunder 2 seconds
2AI error messageactionable
3PDF contains QRscannable

Metrics

MetricTarget
FWCR90%
Time-to-ZATCAunder 2 seconds

Status: 🟡 Spec'ing Last Updated: May 2026