cardinal

What it generates

The records each domain writes, day by day, and what the run's summary checks.

Each simulated day, Seed runs the domains in dependency order: erp, then gst and hrms, with crm independent. Every document comes from the app's own controllers and mapping RPCs. Seed writes no ledger rows itself; ERP and HRMS post GL, Stock Ledger, Payment Ledger and Leave Ledger entries as they would on a live site.

erp

First day, with --company new. Seed sets up the pack's company the way ERP's setup wizard would:

  • Fiscal Years covering the period, the Company on ERP's Standard chart with perpetual inventory;
  • price lists, Selling, Buying and Stock Settings (FIFO), the pack's warehouses;
  • a bank account, payment terms templates, and a share capital Bank Entry;
  • suppliers, items with prices and reorder levels, and customers, each party with a contact and an address. About N/40 customers and N/200 suppliers.

New customers keep arriving over the period at the pack's growth rate.

Buying, every working day.

Material Request → (RFQ → Supplier Quotation) → Purchase Order → Purchase Receipt → Purchase Invoice → Payment Entry

The Stock User raises a Material Request when projected stock falls under the reorder level. The Purchase User orders a day or two later. Goods arrive after the supplier's lead time, sometimes short. The Accounts User enters the invoice within a week and pays due invoices on Fridays, oldest first, while the bank stays above the pack's floor. Now and then part of a receipt goes back with a debit note.

Selling, every working day.

(Lead → Opportunity →) Quotation → Sales Order → Delivery Note → Sales Invoice → Payment Entry

Business customers order through a Sales User, half the time after a Quotation that is ordered, lost or left to expire. Individuals buy at the counter with a Sales Invoice that updates stock and its payment. Customers pay by their habit around the due date: early, late, in two parts, or never. ERP's worker marks the late ones Overdue. Half the businesses that arrive during the run come through a Lead first.

Month, quarter and year.

  • Rent, utilities, bank charges and, without hrms, salaries by Bank Entry each month.
  • Vans, computers and racking bought in the first months, depreciated by ERP each month end.
  • A stock count with a little shrinkage at each quarter end.
  • A Stock Closing Entry and Period Closing Voucher for each fiscal year, and a price rise by the pack's inflation.
  • Now and then an order or expense entry cancelled and amended, or a quotation left as a draft.

gst

GST adds no extra sales or purchases. It turns ERP's documents into GST documents.

  • On the first day: GST Settings with the API and e-waybills off, a GSTIN for a new company in Gujarat, and the Sales Invoice series SI/.YY./.##### as default.
  • Items get HSN codes and Item Tax Templates. 60 percent of business customers and 90 percent of suppliers get a GSTIN, so invoices split into CGST and SGST in Gujarat and IGST outside it.
  • Each working day, a few reverse charge Purchase Invoices for services such as road transport and legal fees.
  • From the 20th of each month, a payment entry for the month before: input credit set off against output tax, IGST credit first, and the rest paid from the bank.

A run is refused while GST Settings' Enable API Features is on, so no seeded GSTIN reaches the GST portal. The company must be in India with INR books. With --company NAME, the company must already have a GSTIN; Seed registers only a company it made.

hrms

First day. HR and Payroll Settings, departments, designations, branches, a Holiday List and Leave Period per leave year (April to March), the General Shift with auto attendance, salary components, a Salary Structure per grade, and the leave policy. Every pack user becomes an employee.

Headcount. --employees, else N/150, at least 15. Most employees joined before the period. New hires join during it at the pack's growth rate.

Every day.

Employee Checkin (in, out) → Attendance (HRMS auto attendance at the day's tick)

People sometimes leave early (Half Day) or stay away (Absent). They apply for Sick, Casual and Privilege Leave, which their manager approves the same day. A few work on holidays and claim Compensatory Off.

Every month.

Payroll Entry → Salary Slips → Bank Entry

On the last working day the HR Manager runs payroll. HRMS posts the accrual and the employer's provident fund (12 percent of basic up to 15,000). The salaries are paid once the bank can cover them. Sales and purchase staff file Expense Claims and take Employee Advances, which the Friday payment run settles.

Every year, leavers. About the pack's attrition share of the headcount resigns. Seeded users, department heads and growth hires never do.

Resignation → Employee Separation (draft) + Job Opening → 3 Job Applicants → Interviews with feedback
→ Job Offer → Employee (after the leaver's last day)

The relieving day is the pack's notice_days after the letter. The leaver checks in up to that day and takes no leave past it. On the relieving day the Employee is set Left, so that month's payroll pays up to it. After the month's Bank Entry, the HR Manager submits the Full and Final Statement and the Accounts User pays what it still owes. The Employee Separation stays a draft, because only a System Manager may submit one.

Every year, appraisals.

Appraisal Cycle (first working day of the leave year's last month) → Appraisals → rated and submitted
→ cycle completed (last working day) → raised Salary Structure Assignments (next year's first day)

The cycle covers the active employees with manual rating and the company's template. The HR User rates each appraisal over the month. Each appraised employee's raise is the pack's increment range scaled by the final score.

crm

crm runs alone or beside the others. Leads are 4 percent of N, so -n 5000 over a quarter brings about 200.

cardinal seed:run -t HOST --domains crm -n 5000 --from 2026-08-21 --to 2026-11-19 --seed 42
  • First day: FCRM Settings, a Sales Manager and four Sales Users, territories, the sales hierarchy, CRM Products from the pack's items, a holiday list and SLAs for CRM Lead and CRM Deal.
  • Leads arrive from the pack's sources. About one in eight is from outside India, in dirhams, dollars or pounds.
  • A rep answers each lead, within the SLA or late, then junks it, nurtures it, leaves it in Contacted, or converts it to a deal.
  • A deal moves through Demo/Making, Proposal/Quotation, Negotiation and Ready to Close, then ends Won, Lost or still open.
  • Notes, tasks, calls and mails sit on each lead and deal. Mail is recorded as a Communication, never sent.

The summary

When a run completes, its Summary field holds each domain's checks:

DomainSummary
erpDocuments per RecType, totals, trial balance, stock value, row counts of ERP's three integrity reports
gstPer month, GSTR 3B output tax, reverse charge tax and input credit against the GL, and GST Balance against the ledger
hrmsHeadcount, leavers, documents per kind, and per month the slips' pay against the salary expense in the GL
crmWhat CRM holds against what the plan scripted

On this page