Zerp — system requirements (rebuild-grade)

Complete, code-accurate requirements documentation for the zerp / Zyncount ERP — backend zerp-be + admin zerp-admin — organized by domain → module → flow. Detailed enough to rebuild the system from these docs.

~80 modules · ~277k LOC captured into 90 documents / ~31k lines. Every module doc follows a fixed template (data model → API → business rules → permissions → flows → admin UI → gotchas), cites source files, and flags real gaps/stubs/bugs found in the code.

Start here

  1. 00 — System Overview — what zerp is, the recurring "ledger" idea, the domains, how a request flows, deployment.
  2. Module Mapzerp-be ↔︎ zerp-admin ↔︎ docs correspondence (incl. headless & UI-only modules).
  3. Glossary & data dictionary — shared vocabulary and base-schema conventions.
  4. SPEC (methodology) · TEMPLATE (per-doc skeleton).

Platform (cross-cutting spine)

Doc Covers
architecture Layering (Resolver→Service→Repository→Schema; component→context→gql→Apollo), base abstractions, stack, conventions
multi-tenancy Per-tenant DBs, master DB, context, timezone rule, migrations
auth Login, JWT access/refresh, OTP, ESS login, company/module selection
permissions-access RBAC: permission modules/actions, access groups, CASL, master-access
workflow-approval-engine Generic approval engine: stages, approvers, callbacks
audit-trail @AuditMeta interceptor, audit entries/diffs, system log
notifications In-app + workflow notifications, Redis subscriptions, email
files-assets-upload FileUpload + S3 storage, how entities reference files
reporting-framework Financial statements + operational reports, report-section mapping

Domains

Domain Docs
Finance account · category · journal · transaction · contra · payment · taxation · cashbook · trade · note · shortcut
Inventory item · categories-uom · pricing · stock · purchases · sales · transfers · adjustments · costing · fulfillment
HR employee · department · org-chart · calendar · attendance · timesheet · leave · payroll · claims-loans-advances · ess · training · hr-dashboard
Manufacturing bom · routing-work-center · production · mrp · quality · accounting-reports
Projects tasks-milestones · time-expense · members-reports
Recruitment recruitment
Sales / POS pos-terminal · pos-settings-session · order-flows
CRM customers · suppliers · kyc
Master data master-reference-data · company-branch · fiscal-period · exchange-rate · config
Assets fixed-assets-depreciation
Budget budgeting
Subscription/config subscription-features
User access users · profile-preferences
Integrations mcp · zoom · version · wingold

Generated from a complete read of zerp-be and zerp-admin. Docs are descriptive of the code as it exists (gaps and stubs flagged inline), not an idealized spec.