> For the complete documentation index, see [llms.txt](https://docs.xenoraa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xenoraa.com/xenoraa-tenant-onboarding-guide/accounts-and-double-entry-bookkeeping.md).

# Accounts & Double-Entry Bookkeeping

## Accounts & Double-Entry Bookkeeping 💼

The **Accounts & Finance** module is the financial core of your business. It automates double-entry bookkeeping, tracks cash flow across bank accounts, manages tax compliance, handles employee payroll, and generates real-time financial statements to keep your business audit-ready.

***

### 🏛️ The Financial Structure of Xenoraa

Xenoraa operates on standard accounting principles:

```
[ Transactions ] --------> [ Chart of Accounts ] --------> [ Financial Reports ]
- Invoices / POs           - Assets (Cash, Bank)          - Balance Sheet
- Expenses / Payroll       - Liabilities (Payables)       - Profit & Loss (P&L)
- Journal Entries          - Equity, Revenue, Expenses    - Trial Balance
```

* **Automated Ledger Postings:** When you record an invoice payment, complete a POS session, or pay an expense, Xenoraa automatically posts the corresponding debit and credit entries to your general ledger.
* **Multi-Tenant Isolation:** All financial records are strictly isolated by your tenant ID, ensuring complete data security and privacy.

***

### 👤 Step-by-Step Module Walkthrough

#### 1. Chart of Accounts (COA)

Your Chart of Accounts is the index of all financial accounts used to record transactions.

* **Managing Accounts:** Navigate to `Accounts > Chart of Accounts`. Xenoraa pre-populates a standard COA with categories:
  * *Assets:* Bank accounts, cash drawers, accounts receivable, inventory value.
  * *Liabilities:* Accounts payable, sales tax liabilities, outstanding loans.
  * *Equity:* Owner's capital, retained earnings.
  * *Revenue:* Sales revenue, service income, interest earned.
  * *Expenses:* Cost of goods sold (COGS), rent, utilities, payroll, marketing.
* **Creating Custom Accounts:** Click **Add Account** to create sub-accounts (e.g., a specific bank account like *HDFC Current Account* or a specific expense like *Server Hosting*).

#### 2. Bank Transfers & Reconciliation

Track money moving between your cash registers, bank accounts, and payment gateways.

* **Recording Bank Transfers:** Navigate to `Accounts > Bank Transfers`. Click **New Transfer** to record internal movements (e.g., transferring cash from your *Retail POS Drawer* to your *Main Operating Bank Account*).
* **Reconciliation:** Match your bank statements against Xenoraa's ledger records to ensure your balances match perfectly.

#### 3. Expense Management

Record and categorize business expenditures to track your operational costs.

* **Logging Expenses:** Navigate to `Accounts > Expenses`. Click **Record Expense**. Specify the amount, payment date, payment method, category (e.g., *Rent*, *Office Supplies*), and attach a digital receipt/invoice copy.
* **Supplier Bills:** For B2B purchases, link expenses directly to your Vendors to maintain an accurate purchase history.

#### 4. Journal Entries

For complex transactions that aren't captured by standard forms, use manual Journal Entries.

* **Creating a Journal Entry:** Navigate to `Accounts > Journal Entries > New`.
* **Balanced Ledger Rule:** Every journal entry must have at least one debit and one credit line, and the **Total Debits must exactly equal Total Credits** before the system allows you to save.

#### 5. Tax Rates & Compliance

Manage sales taxes, GST, or VAT across different products and regions.

* **Configuring Tax Rates:** Navigate to `Accounts > Tax Rates`. Define your local tax brackets (e.g., *GST 18%*, *VAT 5%*, or *Tax Exempt*).
* **Tax Reports:** Xenoraa aggregates tax collected on sales and tax paid on purchases, making it simple to calculate your net tax liability for filing.

#### 6. HR & Payroll Management

Manage employee profiles, track attendance, and process monthly payroll.

* **Employee Directory:** Navigate to `Accounts > HR > Employees`. Maintain records of your team, their roles, salaries, bank details, and joining dates.
* **Processing Payslips:** Navigate to `Accounts > HR > Payslips`. Select an employee, specify the month, and the system automatically calculates basic salary, allowances, deductions, and generates a downloadable PDF payslip.

***

### 📊 Financial Reporting & Statements

Xenoraa provides three critical financial reports in real-time (`Accounts > Reports`):

| Report Name              | What It Shows                                                                                                                         | Target Audience                  |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| **Profit & Loss (P\&L)** | Revenue minus Cost of Goods Sold (COGS) and Expenses over a period. Shows your net net profit or loss.                                | Business Owners, Investors       |
| **Balance Sheet**        | A snapshot of your Assets, Liabilities, and Equity at a specific point in time. Proves the equation: `Assets = Liabilities + Equity`. | Banks, Auditors, Tax Authorities |
| **Trial Balance**        | A list of all ledger accounts and their current balances. Used to verify that debits equal credits.                                   | Accountants, Bookkeepers         |

***

### 💡 Pro-Tips for Business Owners

* **POS Cash Drawer Reconciliation:** At the end of every retail shift, run a **POS Sales Summary** and verify that the cash in the drawer matches the recorded sales before transferring the funds to your main bank account.
* **Budget Tracking:** Navigate to `Accounts > Budgets` to set spending limits for specific expense accounts. Xenoraa alerts you if your actual expenses approach or exceed your budgeted amounts.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.xenoraa.com/xenoraa-tenant-onboarding-guide/accounts-and-double-entry-bookkeeping.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
