Skip to content

Setting up a new company

Who: the implementation lead or accounts manager. Result: a company that can quote, sell and invoice, with a numbered chart of accounts, Oman VAT, and its invoices flowing to the e-invoicing hub.

The setup can be done two ways. Both run the same checks and stop on the same missing details.

  • With Claude (the Infinity ERP connector): you give the details, Claude runs every step and reports back.
  • By hand in the ERP screens and the hub console.

All names and numbers on this page are examples (XYZ Trading LLC). Use the customer's real details.

1. Collect the details first

The setup will not start until every required detail is present and in the right form. It lists everything missing at once and creates nothing.

Required

Detail Example Why it is required Lands in
Company legal name XYZ Trading LLC Seller name on every invoice Company › Company Name
VAT number OM1100012345 Seller VAT number. OM followed by 10 digits Company › Tax ID
CR number 1234567 The e-invoicing hub identifies the company by its commercial registration. Digits only Company › CR Number
ISIC activity code 466201 Industrial classification printed on standard invoices. 4–6 digits Company › ISIC Code
Address line 1 Building 12, Way 3401 Seller address on the e-invoice Company address
Area Al Khuwair Seller address area on the e-invoice Company address › County
City Muscat Seller city on the e-invoice Company address
PO Box / postal code 112 Seller post code on the e-invoice. 3–6 digits Company address › Postal Code
Phone +968 2400 0000 Seller contact phone on the e-invoice Company address

Optional

Detail Example When left out
Abbreviation XYZ Made from the initials (XT). Shown at the end of every account and warehouse name
Trading name XYZ Trading Only needed when it differs from the legal name
Address line 2 Near XYZ Mall Not printed
Email accounts@xyz.example Not printed
Country Oman Oman
Currency OMR OMR
Fiscal year start 2026-01-01 1 January of the current year
Copy chart of accounts from Infy Demo Company The standard numbered chart (4-digit codes)

The CR number cannot be changed on the hub

The hub fixes a company's CR number when the company is created. Get the real CR before connecting to the hub. A wrong CR means creating the hub company again.

2. One-time: hub sign-in (administrator)

Do this once per ERP site, not per company.

  1. Open Panel Configurator Settings › E-Invoicing Hub.
  2. Fill in:
    • Hub URL, for example https://hub.example.com.
    • Hub Sign-in Email and Hub Password of a hub group administrator.
    • Hub TOTP Secret, only if the hub asks that account for a second factor.
    • ERP API User for the Hub: the user whose API key the hub reads invoices with. Generate its API key and secret on the user first.
    • ERP URL the Hub Uses: leave blank to use this site's address.
  3. Save.

3. Set up with Claude

Ask in plain words, for example:

Using infinity-erp, set up a new company. Ask me for anything that's required.

Claude follows these steps:

  1. setup_requirements: reads the list above and asks you for every required detail. It never invents a CR, VAT or ISIC number.
  2. check_setup: checks the details without creating anything and tells you what's missing or malformed.
  3. setup_company creates:
    • the company
    • its address
    • the fiscal year
    • the numbered chart of accounts
    • the Oman VAT accounts and templates
  4. chart_of_accounts: shows the chart as code and description. To add the customer's own accounts, give them as rows (code, description, parent code) and Claude runs import_chart_of_accounts. Existing accounts are renamed, never deleted.
  5. connect_hub does the following on the hub:
    • creates the company with its CR and VAT number
    • connects it to this ERP, for this company's invoices only
    • publishes the standard sales mapping
    • tests the connection and returns the readiness list
  6. setup_status: the final checklist.

Going live on the hub is a separate step. Claude asks you first (connect_hub with go live).

4. Set up by hand

  1. Company: Accounting › Company › New.
    • Fill in the name, abbreviation, country Oman and currency OMR.
    • Fill in Tax ID (VAT number), CR Number, ISIC Code and Trading Name.
    • Under Create Chart of Accounts Based On, choose Standard Template › Standard with Numbers, or Existing Company to copy another company's chart.
  2. Address: Address › New.
    • Fill in line 1, line 2, County (the area), City, Postal Code, Country and Phone.
    • Tick Is Your Company Address and link it to the company.
  3. Fiscal year: check that one covers today, under Accounting › Fiscal Year.
  4. Oman VAT:
    • Accounts:
      • Output VAT 5% and VAT Reverse Charge (RCM) Payable under Duties and Taxes.
      • Input VAT 5% under Tax Assets.
    • Sales templates: Oman VAT 5% (default) and Oman VAT Zero Rated.
    • Purchase templates: Oman VAT 5% Input (default) and Oman Import RCM 5%.
    • Item tax templates: Standard Rated 5%, Zero Rated, Exempt and Out of Scope.
  5. Hub: in the hub console, add a new company.
    • Enter the legal name, CR, VAT number, ERP type ERPNext and connection Direct API.
    • In its connection settings, enter this ERP's URL, the company name and the API key and secret. Then run the connection test.
    • Create the sales mapping from the standard pre-seed and publish it.
    • Check the readiness list. Go live when nothing is blocking.

5. Check the result

  • ERP: the company's E-Invoicing Hub Status shows onboarding or live.
  • Hub readiness: every row is green.
    • With Claude, ask: "setup status for XYZ Trading LLC".
  • Test invoice: before going live, submit one Sales Invoice for the company and follow it on the hub.

6. Accounting reports with account codes

Four reports show every account as a 4-digit Code and a Description instead of 4110 - Sales - XYZ. They use ERPNext's own figures and filters. Open them by typing the name in the search bar, or ask Claude ("trial balance for XYZ Trading LLC this year").

Report Shows
Infinity Trial Balance Opening, debit, credit and closing per account for a period
Infinity Profit and Loss Income and expenses per account, net profit
Infinity Balance Sheet Assets, liabilities and equity per account at a date
Infinity General Ledger Every posting with account code and description, voucher, party and running balance