cardinal

Data packs

The YAML file that describes the company, its people and its trade for a run.

A data pack describes one kind of business. --pack NAME reads priv/packs/NAME.yaml in the Seed app, and a run checks the pack before it starts. Each domain reads its own section.

PackCompanySections
electronics_inKesar Electronics Distributors Pvt Ltd, Ahmedabad, INRAll, including crm
revaik_inRevaik Private Limited, the same business under another nameAll but crm

The packs are compiled into the app. A new industry is a new pack file in the Seed checkout, with no code change, followed by a rebuild.

Sections

KeyHolds
name, description, email_domainThe pack's name, a line for people, and the domain every seeded email uses (example.in)
companyName, abbreviation, country, currency, chart, fiscal year start, address, share capital, and the bank with its floor
calendarThe weekly day off, demand per weekday and per month, yearly growth and price_inflation, and holidays
usersPer role, the team size, extra roles (also), and the department, designation and grade the users get as employees
erpPrice lists, warehouses, item groups, items, supplier types, customer groups, territories, payment habits, expense lines, fixed assets, and the lags and shares of buying and selling
gstShares of registered customers and suppliers, the invoice series, the payment day, nil-rated items, and reverse charge services
crmThe lead share of N, reps' hours and SLA times, lead sources, territories, export markets, and the shares of leads and deals at each outcome
hrmsBranches, departments, designations, grades with salary bands, the shift, leave policy, attendance habits, attrition, increments and expense claims

Each share list adds up to 1.

Example

priv/packs/electronics_in.yaml
company:
  name: Kesar Electronics Distributors Pvt Ltd
  abbr: KED
  country: India
  currency: INR
  chart_of_accounts: Standard
  fiscal_year_start: "04-01"
  share_capital: 7500000
  bank: {name: State Bank of India, account_name: Current Account, floor: 300000}

calendar:
  weekly_off: [Sun]
  weekdays: {Mon: 1.0, Tue: 1.0, Wed: 1.0, Thu: 1.0, Fri: 1.05, Sat: 0.5, Sun: 0.03}
  growth: 0.18
  price_inflation: 0.06

users:
  - {role: Sales User, count: 4, department: Sales, designation: Sales Representative, grade: G2 Associate}
  - {role: Sales Manager, count: 1, department: Sales, designation: Head of Marketing and Sales, grade: G4 Manager, also: [Sales Master Manager]}

With this pack, Monday brings full demand, Saturday half, and Sunday almost none. Prices rise 6 percent each fiscal year, and the Friday supplier run never takes the bank below 300,000.

Holidays

holidays.fixed lists dates as MM-DD that repeat every year, such as 01-26 for Republic Day. holidays.dated lists festivals that move, per year. A year missing from dated gets the fixed holidays alone. Holidays have no demand and no attendance.

Names and addresses

People, businesses and addresses come from word lists in priv/words/: Indian first names and surnames weighted towards Gujarat, business name parts such as Balaji, Electronics and Pvt Ltd, street and building names, and cities and states with their PIN and GST state codes. A change to a list changes the people every seed gives.

On this page