GFS Platform

Process flows

Process flow charts

Process flows
8
Inline diagrams
8
Archify diagrams
2
NS workflows
47
Suitelets
50

Reading these

Each flow has an inline SVG diagram (renders in any browser, no external dependencies) plus the Mermaid source if you want to render it elsewhere. Two flows have richer Archify diagrams linked inline.

Order-to-Cash (O2C)

Standard order lifecycle. Lead → quote → SO → production (WO + Assembly Build) → fulfillment → invoicing → payment. Credit memos branch from invoice.

LeadQSOWOABIFINVCPCredit Memo

Open interactive Archify diagram →

Mermaid source
flowchart LR L[Lead] --> Q[Quote] Q --> SO[Sales Order] SO --> WO[Work Order] WO --> AB[Assembly Build] AB --> IF[Fulfillment] IF --> INV[Invoice] INV --> CP[Payment] CP --> CM[Credit Memo]

Records / D1 tables: transactions, so_lines, invoice_lines, customers, items

Procure-to-Pay (P2P)

Procurement lifecycle. PR → PO → IR (3-way match input) → VB → VP / Check. 22,911 vendor bills in D1.

Purchase RequestPOIRVBVPCheck
Mermaid source
flowchart LR PR[Purchase Request] --> PO[Purchase Order] PO --> IR[Item Receipt] IR --> VB[Vendor Bill] VB --> VP[Vendor Payment] VP --> CHK[Check]

Records / D1 tables: transactions, vb_lines, vendors, items

Inventory & Work Orders

Production and warehouse. WO drives Assembly Build, which consumes raw items via IR and outputs finished goods.

Item ReceiptInv TransferWork OrderABInv WorksheetIADJUNBLD
Mermaid source
flowchart LR WO[Work Order] --> AB[Assembly Build] AB --> IADJ[Inv Adjustment] IT[Inv Transfer] --> WS[Inv Worksheet] IR[Item Receipt] --> AB AB --> UNBLD[Assembly Unbuild] UNBLD --> IADJ

Records / D1 tables: transactions, items, ref_location

Pricing Management

Customer-specific pricing flow. 1,264 customer_pricing rows in D1. Stale prices flagged via the 'Outdated Customer Pricing' saved search.

Prices Good Throu…Pricing RequestStale alertREVAPPCPSO pulls pricing
Mermaid source
flowchart LR REQ[Pricing Request] --> REV[Customer Pricing Review] REV --> APP[Approval] APP --> CP[customer_pricing update] CP --> SOP[SO pulls pricing] PGT[Prices Good Through] --> EXP[Stale alert]

Records / D1 tables: customer_pricing, customers, items

Collections & Dunning

Dual dunning: Customer-level + Invoice-level + Invoice Group-level. 18 workflows + 8 dunning email templates.

Group EvalOpen InvoiceAGEEVALPAEMClear after 7d
Mermaid source
flowchart LR INV[Open Invoice] --> AGE[Aging > threshold] AGE --> EVAL[Dunning Eval] EVAL --> PA[Procedure Assign] PA --> EM[Email Send] EM --> CLR[Clear after 7d] GRP[Group Eval] --> PA

Records / D1 tables: transactions (CustInvc), customers, dunningprocedure

Financial Close

Period close. All 154 periods (FY2018-FY2026) currently OPEN per audit — undermines comparative reporting. Tier 1 GAP.

Transactions all …POSTRECADJCLSFinancial Stateme…
Mermaid source
flowchart LR TX[Transactions all 20 types] --> POST[Post to Period] POST --> REC[Reconciliation] REC --> ADJ[Adjusting JEs] ADJ --> CLS[Close Period] CLS --> RPT[Financial Statements]

Records / D1 tables: transactions, gl_accounts, AccountingPeriod

NetSuite → D1 sync

Current sync path. Single-laptop dependency — #1 SPOF in the blueprint. Remediation: Worker scheduled() handler calling SuiteAPI directly.

NetSuite 4656898SAPICHRTSYNCWRGD1WKREST endpoints
Mermaid source
flowchart LR NS[NetSuite 4656898] --> SAPI[SuiteAPI 2948] SAPI --> CHRT[Chartstone Pro] CHRT --> SYNC[sync.sh every 15m] SYNC --> WRG[wrangler d1 execute] WRG --> D1[D1 transactions] D1 --> WK[Worker] WK --> API[REST endpoints]

Records / D1 tables: transactions, ref_*, sync_log

System architecture

Full architecture across NS, local sync layer, and Cloudflare. Interactive Archify version has dark/light toggle and PNG/SVG export.

KVNetSuitePagesR2SAPIUICHRTSYNCD1WKapi.ai-...

Open interactive Archify diagram →

Mermaid source
flowchart LR NS[NetSuite] --> SAPI[SuiteAPI] SAPI --> CHRT[Chartstone] CHRT --> SYNC[sync.sh] SYNC --> D1[D1] D1 --> WK[Worker] KV[KV] --> WK R2[R2] --> WK WK --> API[api.ai-...] PG[Pages] --> WEB[UI]

Records / D1 tables: all