Search customer FAQs, step-by-step ERP tutorials, and official knowledge base articles
Comprehensive conceptual discussion of how procurement, inventory inwarding, sales orders, tax invoicing, and ledger balance reconciliation connect.
Commercial businesses thrive on rapid, accurate inventory turnover and cash flow management. Shrelix ERP links every phase of the commercial cycle into a synchronized data pipeline:
graph TD
PO[1. Purchase Order] -->|Goods Delivered| PB[2. Inward Purchase Bill]
PB -->|Adds Stock| IBS[(3. Branch Stock Pool)]
PB -->|Credits Payable| PL[Supplier Ledger]
SO[4. Sales Order] -->|Pack & Dispatch| INV[5. Sales Invoice]
IBS -->|Deducts Stock| INV
INV -->|Debits Receivable| SL[Customer Ledger]
PAY[6. Customer Payment] -->|Settles Debt (FIFO)| SL
PAY -->|Cash / Bank Inflow| CASH[Liquid Capital]
CASH -->|Supplier Disbursement| SPAY[7. Supplier Payment]
SPAY -->|Settles Debt| PL
purchase_orders). Stock levels remain unchanged.purchase_bills).item_branch_stock) and logs an immutable audit entry in stock_transactions.purchase_ledger).pub_catalog.php) or phone. A Sales Order (sale_orders) is created. Stock remains intact.invoices).item_branch_stock. If prevent_negative_stock is active, the system halts the sale if shelf inventory is insufficient.purchase_price.ledger.php).payments) is recorded.paid.purchase_payments), completing the enterprise commercial loop.Read the comprehensive manual in our official developer and software documentation.
Deep dive into physical stock allocation, effective stock branch resolution, multi-branch pools, and stock movement audit trails.
Managing stock across multiple retail outlets, satellite warehouses, and delivery vans requires clear inventory modeling. Shrelix ERP balances localized store independence with centralized synchronization.
Shrelix ERP separates inventory operations into two coordinated business tracking systems:
Under Organization > Branches, every branch has a sync_stock flag:
graph TD
MainBranch[Main Branch / Central Warehouse: is_default = 1]
Sub1[Billing Counter 1: sync_stock = 1] -->|Shares Stock Pool| MainBranch
Sub2[Delivery Van 2: sync_stock = 1] -->|Shares Stock Pool| MainBranch
IndBranch[Regional Store: sync_stock = 0] -->|Maintains Isolated Stock| IndPool[(Independent Stock Pool)]
warehouse.php).When Prevent Negative Stock is enabled under System > Settings:
requested_quantity > available_stock, the transaction is safely aborted with a clear alert:> "Insufficient stock for Wireless Optical Mouse. Available: 2, Requested: 5"
Read the comprehensive manual in our official developer and software documentation.
Detailed examination of the First-In, First-Out (FIFO) algorithm for allocating unlinked payments and returns across customer invoices.
In trade distribution and wholesale commerce, customers rarely pay invoice-by-invoice. Instead, clients make round-number advance transfers (e.g. ₹50,000), return random batches of defective items for credit, or issue weekly installment checks.
Shrelix ERP resolves this challenge using an automated deterministic First-In, First-Out (FIFO) Ledger Allocation Engine.
Suppose a customer has three outstanding sales invoices:
INV-001 (Jan 10): ₹10,000 (Status: udhar)INV-002 (Jan 15): ₹15,000 (Status: udhar)INV-003 (Jan 20): ₹20,000 (Status: udhar)On January 25, the customer makes an unlinked on-account payment of ₹18,000. Which invoice is paid?
When the automated debt settlement engine runs:
flowchart TD
Pools[Compute General Payment Pool & Return Pool] --> Sort[Order Customer Invoices by Date ASC, ID ASC]
Sort --> Loop[Loop Through Invoices Chronologically]
Loop --> Explicit[1. Apply Explicit Invoice-Linked Payments & Returns]
Explicit --> CheckDue{Remaining Due > 0?}
CheckDue -->|Yes| ApplyReturn[2. Deduct from General Return Pool]
ApplyReturn --> ApplyPay[3. Deduct from General Payment Pool]
ApplyPay --> CheckZero{Remaining Due == 0?}
CheckZero -->|Yes| SetPaid[Status = 'paid']
CheckZero -->|No| SetUdhar[Status = 'udhar']
CheckDue -->|No| SetPaid
SetPaid --> Next[Next Invoice]
SetUdhar --> Next
If a payment voucher explicitly named INV-002 at the time of entry, that payment is tied directly to INV-002. It is never used to pay off other bills.
Unlinked returns (Credit Notes) reduce debt before cash payments are consumed, preserving liquidity records.
The general pool of unlinked payments is applied sequentially to the oldest open invoice first:
INV-001 (₹10,000 due):₹18,000.₹10,000 is consumed to satisfy INV-001.₹8,000.INV-001 status updates to paid!INV-002 (₹15,000 due):₹8,000 remaining.₹8,000 is consumed against INV-002.INV-002: ₹7,000.₹0.00).INV-002 status remains udhar.INV-003 (₹20,000 due):INV-003 status remains udhar.Read the comprehensive manual in our official developer and software documentation.
Business guide to the B2B network synchronization workflow, trading partner verification, and automated line item reconciliation.
The Shrelix B2B Network Synchronization solves the commercial bottleneck of duplicate data entry between regular trading partners.
Traditionally, a supplier issues a sales invoice, prints a paper copy or emails a PDF, and the receiving company's accounting team spends hours manually re-typing line items, quantities, rates, and GST breakdowns into their purchase registry.
Shrelix ERP transforms this into a seamless, verified digital transmission.
Before any financial documents can be exchanged, both organizations establish a mutually authorized digital connection:
Company A (Supplier) Company B (Buyer)
| |
|----- 1. Sends Network Invite (Mobile) ------>|
| |
| [In-App Notification Alert]
| |
|<---- 2. Reviews & Approves Connection -------|
| |
[Connected Status] [Connected Status]
When Company A finalizes a standard sales invoice addressed to Company B:
[Company A: Sales Invoice Generated]
|
v
[Encrypted Network Transmission]
|
v
[Company B: Inward Notification Alert]
|
v
[Company B: Line Item Reconciliation Review]
|
v
[Company B: Official Purchase Bill Created & Stock Added]
Suppliers and buyers frequently use different naming conventions for the exact same physical product (e.g., "Dell Optiplex 7090" vs "Desktop PC Dell Core i7").
Shrelix ERP resolves this through the Interactive Line Item Mapper:
Read the comprehensive manual in our official developer and software documentation.
Comprehensive explanation of Goods & Services Tax (GST) rules, place of supply, HSN categorization, reverse charges, and GSTR filing integration.
Shrelix ERP is architected to adhere strictly to the regulatory framework established by the Goods and Services Tax Council of India. This document explains how the software evaluates tax liabilities, determines tax jurisdiction splits, and formats reporting data.
Under the Indian GST framework, taxation depends on whether the transaction is an Intra-State Supply or an Inter-State Supply.
Shrelix ERP determines this by comparing the Seller State Code (derived from the first two digits of your company GSTIN in users.gst_number) against the Buyer Place of Supply / State Code (derived from customers.gst_number or state address):
[Seller State: e.g. 27 - Maharashtra]
|
Is Buyer State == 27?
/ \
[YES] [NO]
/ \
INTRA-STATE SUPPLY INTER-STATE SUPPLY
For an item taxed at 18% on a taxable value of ₹1,000.00:
₹90.00₹90.00₹1,180.00₹180.00₹1,180.00Indian GST regulations mandate distinct reporting for registered commercial buyers vs. end consumers:
| Category | Identification Rule | Statutory Filing Treatment |
| :--- | :--- | :--- |
| B2B (Business-to-Business) | Customer has a valid 15-character GSTIN. | Invoices are reported individually in GSTR-1 Table 4 with the buyer's GSTIN, invoice number, date, value, and tax rates. Enables buyer to claim Input Tax Credit (ITC). |
| B2C (Business-to-Consumer) | Customer does not have a GSTIN. | Transactions are consolidated by state and tax rate slab into GSTR-1 Table 5 & 7 without disclosing individual customer identities. |
When goods or services are procured from unregistered suppliers or under notified RCM categories (e.g. goods transport agency services), tax liability shifts from supplier to recipient. Shrelix ERP flags these transactions in tax_report.php to prevent improper credit claims.
Read the comprehensive manual in our official developer and software documentation.
High-level architectural and functional introduction to the Shrelix cloud enterprise management platform.
Shrelix ERP is a modern, high-performance Cloud Enterprise Resource Planning and Business Management Platform designed specifically for retail, wholesale, distribution, and manufacturing enterprises. It brings together point-of-sale invoicing, purchase management, multi-branch inventory tracking, customer and supplier ledgers, Indian GST compliance, field staff GPS route tracking, and automated customer communication into a unified workspace.
Whether your business operates from a single counter or spans multiple distributed retail branches and central warehouses, Shrelix ERP provides real-time transaction synchronization, audit logging, and automated reconciliation.
At its core, Shrelix ERP is an integrated business operating system that connects commercial workflows end-to-end:
graph LR
Suppliers[Suppliers / Vendors] -->|Purchase Bills & Orders| Inward[Inward Inventory & Warehouse]
Inward -->|Stock Distribution| Branches[Multi-Branch Network]
Branches -->|Sales Invoices & Orders| Customers[Customers & Retail Counters]
Customers -->|Payments & Returns| Ledger[Financial Ledgers & Tax Reports]
Every organization operates in a dedicated, isolated workspace with enterprise data protection, strict privacy controls, daily automated backups, and 99.9% uptime.
Fast POS counter billing with barcode scanning, hold/park bills, retail and wholesale pricing modes, thermal receipt printing (58mm/80mm), and standard GST tax invoices (A4/A5).
Manage central warehouses and branch stores with granular permissions. Enable synchronized stock or independent branch stock pools, automated depletion on sale, and inter-branch transfers.
Automated real-time ledger generation with first-in, first-out (FIFO) balance allocation across invoices, customer payments, sale returns, supplier bills, and debit notes.
Native HSN/SAC code tracking, automatic GST breakdown (Intra-state CGST + SGST vs. Inter-state IGST), reverse charge indicators, and comprehensive tax reports compatible with GSTR-1 and GSTR-3B filings.
Connect with other registered companies on the Shrelix ERP network. When a vendor issues a sales invoice, it automatically lands in the buyer's ERP as an inward purchase bill for one-click verification and line item mapping.
Native Android field app (ShrelixStaff.apk) providing GPS location telemetry, route history playback, order collection, and customer balance visibility for traveling sales executives.
Dispatch interactive PDF invoice links, payment receipt confirmations, and payment reminder links with instant UPI QR codes over WhatsApp and SMS.
Shrelix ERP provides role-based access control designed for various organizational roles:
| Role | Primary Activities | Key Accessible Modules |
| :--- | :--- | :--- |
| Business Owner / Super Admin | Overall enterprise governance, subscription management, branch setup, staff permission delegation, and financial auditing. | Full System Access, Central Portal, Financial Reports, Settings, Branches, Staff Management |
| Store Manager | Store sales oversight, inventory replenishment, customer credit approval, and shift reporting. | Sales, Purchases, Stock Transfers, Customer/Supplier Masters, Date-wise Reports |
| Counter Cashier / Billing Staff | High-speed billing, item scanning, hold bills, cash/UPI receipt collection, and receipt printing. | Sale / Invoices, Hold Bills, Customer Quick Search, Payment Entry |
| Warehouse Keeper | Inward consignment receipt, purchase order inspection, stock adjustments, and inter-branch transfers. | Purchase Bills, Items Master, Warehouse, Stock Audit |
| Accountant / CA | Payment reconciliation, supplier payment processing, credit/debit notes, and GST return extraction. | Sales Ledger, Purchase Ledger, Tax Reports, Bank Settings |
| Field Sales Agent | Client visits, route logging, catalog demonstrations, order booking, and field payment collection. | Mobile Staff Portal, Field App (APK), Public Catalogs |
Shrelix ERP is built as an enterprise web application with companion native Android mobile utilities.
This documentation portal is structured according to the Diátaxis Documentation Framework, dividing knowledge into four distinct quadrants:
quadrantChart
title Diátaxis Documentation Framework
x-axis Practical (Work) --> Theoretical (Knowledge)
y-axis Acquisition (Learning) --> Application (Reference)
quadrant-1 Reference Documentation
quadrant-2 Explanation Articles
quadrant-3 Tutorials
quadrant-4 How-To Guides
Read the comprehensive manual in our official developer and software documentation.
Initial workspace setup, signing in, and configuring your corporate profile, bank details, and invoice branding.
Welcome to your new Shrelix ERP organization. This guide walks you through signing in for the first time, establishing your workspace credentials, configuring your company profile, and setting up your bank details for invoices.
Shrelix ERP operates on a secure multi-tenant structure. Each tenant accesses their system via their designated domain or subpath:
https://erp.shrelix.com/[your-workspace-code]/login.php or https://[your-subdomain].erp.shrelix.comhttp://erp.shrelix.local/login.php> [!NOTE]
> Upon successful authentication, Shrelix ERP initializes a dedicated session cookie (SHRELIXSESS_[workspace]) with a 30-day persistence window, automatically binding your user permissions and branch affiliation.
Immediately after logging in as an administrator, configure your corporate profile. This information directly populates the header, footer, tax information, and bank details on all printed sales invoices, estimates, purchase orders, and customer statements.
profile.php).In the Profile Information card, fill out your organization's business details:
| Field Name | Description | Example / Allowed Values | Required |
| :--- | :--- | :--- | :--- |
| Shop / Company Name | Legal or trade name displayed prominently at the top of all invoices and receipts. | Apex Retailers Pvt Ltd | Yes |
| Owner / Manager Name | Primary contact or authorized signatory name. | Rajesh Sharma | Yes |
| Mobile Number | Primary phone number for customer contact and automated WhatsApp dispatch. | +919876543210 | Yes |
| Email Address | Primary administrative email address used for system alerts and password recoveries. | billing@apexretail.com | Yes |
| Business Address | Full physical or postal address printed on invoice headers. Supports multiple lines. | Shop 12, Ground Floor, Central Plaza, M.G. Road, Pune | Yes |
| GST Number (GSTIN) | 15-character Goods and Services Tax Identification Number. | 27AABCU9603R1ZM | Optional |
| System Timezone | Operational timezone for timestamps, transactions, and audit logs. Default is Asia/Kolkata. | Asia/Kolkata (IST, UTC+5:30) | Yes |
| CA Name | Name of your Chartered Accountant for tax communication. | S. K. Mehta & Co. | Optional |
| CA Phone Number | Direct phone number of your CA. | +919822011223 | Optional |
Shrelix ERP generates printable UPI QR codes and banking settlement details on sales invoices so customers can pay directly from their smartphone banking apps.
In the Bank & Settlement Details section:
apexretail@okicici or 9876543210@paytm). When entered, an interactive dynamic UPI QR code is automatically generated on all printed A4, A5, and thermal receipts!Apex Retailers Pvt Ltd).HDFC Bank Ltd).HDFC0001234).Shivaji Nagar Branch).Click Save Profile Changes to persist your profile updates.
Next, configure operational business preferences under System > Settings (settings.php):
warehouse_enabled): Enable this toggle if you track physical quantities and inventory valuations.> [!IMPORTANT]
> Once purchase bills or inward stock entries are created with warehouse tracking enabled, this setting cannot be disabled to preserve audit integrity.
enable_hsn_code):round_off_total): When enabled, invoice totals with fractional paise are rounded mathematically to the nearest integer rupee.prevent_negative_stock): When enabled, cashiers and sales staff cannot generate an invoice if available branch stock is less than the requested quantity.default_sale_mode): Choose between Retail (MRP / Retail Price default) or Wholesale (Trade / Wholesale Price default).invoice_terms): Customize the standard legal disclaimer, return window, or payment conditions printed at the bottom of customer bills.Click Save Settings to finalize your configuration.
Read the comprehensive manual in our official developer and software documentation.
Complete fast-track guide from a blank workspace to issuing and printing your very first sales invoice.
This guide walks you through setting up your catalog, adding your first customer, and issuing your first invoice in 15 minutes.
Categories allow you to organize your catalog, filter inventory, and review segmented sales reports.
categories.php).Electronics, Groceries, or Hardware).Next, create a product record with pricing, tax rate, and initial stock.
items.php).Wireless Optical MousePcs (Pieces), Kg, Box, etc.350.00 (Your cost per unit without tax).600.00 (Standard selling price).500.00 (Discounted bulk price).18% (or applicable rate: 0%, 5%, 12%, 18%, 28%).8471 (Required if HSN mode is enabled in Settings).50).5 (System alerts you when stock drops to or below this level).> [!TIP]
> Once saved, Shrelix ERP automatically creates a corresponding opening stock record in stock_transactions and assigns the quantity to your active branch.
While walk-in cash sales can use a default cash counter customer, saving regular parties allows you to track balances, credit terms, and purchase histories.
customers.php).Rohit Verma+919811223344Plot 45, MG Road, MumbaiNow generate the sale transaction.
sale.php).Rohit Verma or select them from the customer dropdown.Wireless or scan the item's barcode.Wireless Optical Mouse from the autocomplete suggestions.₹600.00), GST percentage (18%), and HSN code populate automatically.2.₹1,200.00, GST (18%) = ₹216.00, Total = ₹1,416.00.₹1,416.00.1416 (Invoice status becomes Paid).0 (Invoice status becomes Udhar).500 (Remaining ₹916.00 posts to the customer's outstanding balance).Cash, UPI, Card, or Bank Transfer.Upon saving, the system redirects to the interactive Invoice View (invoice.php / inv.php):
Congratulations! You have completed the fast-track workflow in Shrelix ERP.
Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on branding customer invoices, uploading logos, configuring bank UPI remittance details, and legal disclaimers.
Your invoices, receipts, and public customer statements serve as your brand's primary customer touchpoint. Shrelix ERP provides full control over corporate identity, banking details, and legal terms.
profile.php).To enable instant mobile payments directly from printed bills:
apexretail@okaxis).To define standard return policies, warranty disclaimers, or jurisdiction clauses:
settings.php).invoice_terms).Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on managing product catalog masters, pricing tiers, HSN tax rates, barcode printing, and low-stock alerts.
The Items Master (items.php) is the central product registry in Shrelix ERP. Every commercial item, raw material, or finished good is tracked here with comprehensive pricing tiers, taxation rates, branch-wise stock levels, and barcode identifiers.
inventory or inventory_items.items.php).SanDisk Ultra 64GB MicroSD Card).Pcs, Kg, Mtr, Box, Set).₹300.00).₹500.00).₹420.00).enable_mrp is toggled in Settings).0%, 5%, 12%, 18%, or 28%).8523).10). When branch inventory drops to or below this level, the item appears on the Low Stock dashboard alert.Shrelix ERP includes a built-in barcode label generator for printing stickers onto standard adhesive label sheets or thermal barcode printers:
items.php), locate the product.20).Thermal 50x25mm Single Label or A4 24-Up Sheet).Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on issuing sales invoices, applying retail or wholesale pricing, handling taxes, and printing thermal or A4 formats.
This guide explains how to generate, modify, and print customer sales invoices in Shrelix ERP (sale.php).
sales or sales_bills permission.sale.php).Cash Customer).sale_price).wholesale_price).paid).udhar, balance added to customer ledger).0 (Status = udhar).Cash, UPI, Card, or Bank Transfer.To correct an invoice generated earlier:
sale.php?id=[invoice_id]).> [!IMPORTANT]
> When an invoice is updated, Shrelix ERP automatically reverses previous inventory deductions, restores the original quantities to the branch stock pool, and then applies the new updated line quantities to maintain inventory integrity.
Shrelix ERP provides three distinct output formats for invoices:
pdf_invoice.php).Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on filtering tax summaries, reconciling CGST, SGST, IGST liability, and exporting return data for your Chartered Accountant.
Shrelix ERP includes a dedicated tax reporting engine (tax_report.php) designed for Indian GST compliance. It segments transactions into B2B and B2C sales, separates intra-state (CGST + SGST) from inter-state (IGST) transactions, computes reverse charge liabilities, and formats HSN summaries for GSTR-1 preparation.
reports.tax_report.php).October 2026 or Q3 2026-27).All Branches for consolidated organization tax returns.The generated report is structured into key regulatory sections:
Lists all invoices issued to customers with a valid GSTIN:
Aggregates sales made to retail consumers without GSTINs, broken down by state of supply and applicable tax rate slabs (5%, 12%, 18%, 28%).
Details sales returns processed during the period to calculate net output tax deductions.
Consolidates total quantities sold, units of measure (UQC), total value, taxable value, and integrated/central/state tax grouped by unique HSN Code.
pub_tax_report.php?token=...). This generates a secure, read-only token link so your tax consultant can view and extract return numbers directly without logging into your ERP!Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on registering customers, tracking receivables, importing contacts, and performing single or bulk branch transfers.
Customer management in Shrelix ERP (customers.php) tracks commercial customer profiles, billing addresses, delivery shipping addresses, GST numbers, live outstanding receivables, and branch assignments.
customers.customers.php).Kavita Enterprises).+919822334455).In the Saved Customers list table, review key balance metrics:
$$\text{Outstanding Due} = \max\Big(0,\; (\text{Total Udhar Invoices} + \text{Total Paid Invoices}) - \text{Total Payments} - \text{Total Sale Returns}\Big)$$
₹0.00, the account is fully settled.When opening a new branch or reallocating territory among sales teams, customers can be moved to another store location:
Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on entering vendor invoices, allocating inward freight charges, updating branch stock, and managing tax credits.
Recording purchase bills accurately is essential for keeping inventory valuations correct, maintaining physical stock counts, and claiming Input Tax Credit (ITC) on GST returns.
purchase_bills.purchases.php).purchase_create.php).INV-9021). This must be unique per supplier.18%).Transportation & unloading).0.00 for credit purchases.Bank Transfer, Cheque, UPI).Upon clicking Save:
item_branch_stock for your active branch.purchase_price is updated to reflect the latest replacement cost.stock_transactions with reference_type = 'purchase'.purchase_ledger.Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on setting up retail branch outlets, warehouses, default store locations, and stock synchronization rules.
Shrelix ERP supports distributed multi-location enterprises. You can configure physical branch stores, warehouses, and satellite outlets, assigning dedicated staff and tracking localized inventory.
branches.php).Kothrud Retail Outlet or Central Logistics Hub).KTRD or CENT).sync_stock):Once a branch is established:
staff.php).Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on filtering comprehensive sales, purchase, and payment transactions across branches and payment methods.
The Date-Wise Transaction Report (datewise_report.php) is the primary operational ledger in Shrelix ERP, providing unified visibility into sales bills, payment collections, purchase expenses, and returns across any selected timeframe.
reports or Super Administrator role.datewise_report.php).Today, Yesterday, This Week, This Month, Custom Range).All Transactions: Combined financial view.Sales Only: Sales invoices and counter bills.Purchases Only: Inward purchase bills and vendor invoices.Payments Only: Inward customer payments.All Branches.Cash, UPI, Card, Bank Transfer).At the top of the report, key totals update dynamically based on your filters:
Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on creating procurement purchase orders, issuing POs to suppliers, and converting fulfilled orders into purchase bills.
A Purchase Order (PO) is a formal commercial document sent to a supplier authorizing the shipment of goods at agreed prices and delivery schedules. In Shrelix ERP, Purchase Orders help you track pending orders and easily convert received shipments into purchase bills.
purchase_orders.purchase_orders.php).purchase_order.php).Deliver to Central Warehouse Dock B).PO-20261018-0004).pdf_purchase_order.php / purchase_order_view.php).When the supplier delivers the consignment with their tax invoice:
purchase_order_invoice.php).received.Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on recording sales orders, managing order statuses, and converting approved orders into tax invoices.
Sales Orders allow your business to take advance bookings, reserve stock for future dispatch, and convert approved customer requests into tax invoices without re-typing.
sales_orders.sale_orders.php).sale_order.php).SO-20261018-0005) with initial status pending.> [!NOTE]
> A Sales Order records customer intent and commitment, but does NOT deduct physical inventory or affect customer financial ledgers until it is converted into a Sales Invoice.
When order packing is complete and the goods are ready for delivery:
sale_orders.php), locate the order.sale_order_invoice.php).invoices).item_branch_stock.stock_transactions.converted.Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on managing vendor profiles, contact details, bank accounts, and accounts payable balances.
The Suppliers Master (suppliers.php) maintains vendor records, contact persons, tax registration numbers, bank settlement accounts, and accounts payable balances.
suppliers.suppliers.php).Balaji Fasteners & Hardware).State Bank of India389201928312SBIN0004521Balaji Fasteners Pvt LtdIn the suppliers table:
purchase_payment.php.$$\text{Payable Balance} = \max\Big(0,\; \text{Total Bills} - \text{Total Payments} - \text{Total Purchase Returns}\Big)$$
purchase_ledger.php.Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on relocating physical inventory between stores, central warehouses, and retail branches.
When your business operates multiple locations (e.g., a Central Warehouse and several retail branches), Shrelix ERP allows you to transfer stock between locations while maintaining complete audit trails and preventing stock loss.
warehouse.warehouse.php).Central Warehouse).Downtown Retail Outlet).Weekly store replenishment).Wireless Optical Mouse).Available: 45).15).Upon executing the transfer:
item_branch_stock decrements by -15.item_branch_stock increments by +15.warehouse_transactions and stock_transactions:transfer_out) for the sending location.transfer_in) for the receiving location.Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on managing user credentials, configuring modular access permissions, locking accounts, and branch isolation.
Shrelix ERP features a granular role-based access control (RBAC) engine (staff.php). Administrators can configure exact module permissions per employee, preventing unauthorized access to sensitive financial metrics or supplier costs.
staff.php).Pooja Sharmapooja_cashier).pooja@apexretail.com.+919833221100.Select only the specific checkboxes required for their job responsibility:
| Section | Checkbox Option | Access Granted |
| :--- | :--- | :--- |
| Sales | Sale / Invoices (perm_sales_bills) | Create and view customer sales invoices. |
| | Sale Orders (perm_sales_orders) | Manage customer sales orders. |
| | Sale Returns (perm_sales_returns) | Process customer returns & credit notes. |
| | Customers (perm_customers) | View and create customer records. |
| | Payments (perm_payments) | Collect and record customer payments. |
| | Sales Ledger (perm_sales_ledger) | View customer accounts and running balances. |
| Purchases | Purchase Bills (perm_purchase_bills) | Create and view inward purchase bills. |
| | Purchase Orders (perm_purchase_orders) | Manage procurement purchase orders. |
| | Purchase Returns (perm_purchase_returns) | Process returns to suppliers. |
| | Suppliers (perm_suppliers) | Access vendor directory. |
| | Purchase Ledger (perm_purchase_ledger) | View accounts payable statements. |
| Inventory | Items (perm_inventory_items) | Access product catalog and barcodes. |
| | Categories (perm_categories) | Manage product classification. |
| | Warehouse (perm_warehouse) | Perform stock transfers and adjustments. |
| Reports | Datewise Report (perm_reports) | Review daily transaction logs. |
| Settings | Settings (perm_settings) | Access system configuration toggles. |
If an employee resigns, goes on extended leave, or a security audit is underway:
staff.php).is_locked = 1).> "🔒 Your account is locked. You cannot create sales or add items. Please contact the administrator."
Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on returning goods to suppliers, deducting stock, issuing debit notes, and reducing accounts payable.
When received goods are damaged, defective, expired, or do not match specifications, you can issue a Purchase Return (Debit Note). Shrelix ERP deducts the returned inventory from your branch and credits the financial return value against your supplier's payable ledger balance.
purchase_returns.purchase_returns.php).purchase_return.php).0.Damaged in transit, Wrong specifications, Expired).If the original purchase bill number is unavailable:
purchase_return.php.Upon saving:
item_branch_stock.type = 'out', reference_type = 'purchase_return') is logged in stock_transactions.purchase_ledger using automated FIFO allocation.pdf_purchase_return.php) to send to the vendor for accounting acknowledgment.Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on reconciling physical stock counts with software records and recording shrinkage, damage, or found inventory.
Physical inventory counts rarely match electronic records perfectly due to damage, shrinkage, leakage, supplier packaging discrepancies, or clerical counting errors. Shrelix ERP provides a dedicated Stock Adjustment tool to reconcile variances with strict accountability.
warehouse.warehouse.php).32 Pcs).30). The system automatically calculates the variance (-2 Pcs).+5).-2).Physical Audit ReconciliationDamaged / Broken in StoreExpired / Obsolete GoodsTheft / ShrinkageClerical Correctionwarehouse_transactions and stock_transactions.Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on accepting customer returns, restoring inventory, issuing credit notes, and adjusting ledger balances.
When a customer returns merchandise due to defects, cancellations, or exchanges, Shrelix ERP handles the complete return cycle: restoring stock to your active branch, issuing a formal Credit Note, and automatically deducting the return value from the customer's outstanding balance.
sales_returns.Whenever possible, link the return to the original sales invoice to maintain exact tax calculations and pricing:
sale_returns.php).sale_return.php).INV-20261018-0421).0).Defective Item, Wrong Size, Customer Cancelled).If the original invoice number is unavailable:
sale_return.php.Upon saving the return:
item_branch_stock.type = 'in', reference_type = 'sale_return') is inserted into stock_transactions.pdf_sale_return.php / sale_return_invoice.php).Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on filtering customer financial statements, running balance reconciliation, and generating shareable public ledger links.
The Sales Ledger (ledger.php) provides an itemized chronological record of all commercial activity for a customer: sales invoices, payment receipts, credit notes (sales returns), and the net running balance.
sales_ledger.ledger.php).Today, This Month, Last Month, This Quarter, Current Financial Year.INV-20261018-0421, PAY-0089, or SR-0012).Sale Invoice, Payment Received, or Sale Return.Instead of printing paper statements, you can provide customers with a secure, real-time online statement portal:
https://erp.shrelix.com/[workspace]/pub_ledger.php?token=[share_token]
Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on configuring staff sales commission percentages and generating commission payout statements.
For retail counters, dealerships, and distribution agencies that compensate sales executives with performance incentives, Shrelix ERP calculates commissions automatically at the line-item level.
commission_percent).In Shrelix ERP, commission is calculated based on the Net Sale Value Excluding GST:
$$\text{Line Commission} = (\text{Quantity} \times \text{Item Price}) \times \left(\frac{\text{Commission \%}}{100}\right)$$
> [!NOTE]
> Commission is never calculated on taxes (GST), extra charges, or shipping fees, ensuring your enterprise does not pay commission on statutory government levies.
report_commission.php).Last Month or October 1 - October 31).All Staff.The commission ledger displays:
Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on bulk uploading product catalogs from Excel/CSV spreadsheets and exporting inventory records.
Migrating from an older billing software or adding hundreds of new items at once is simplified using Shrelix ERP's bulk CSV import and export engine (items.php and api_items_export.php).
inventory_items.To download a complete copy of your current inventory:
items.php).api_items_export.php?action=export).items.php).Ensure your CSV columns match the following exact order:
| Column # | Header Name | Description | Example | Required |
| :--- | :--- | :--- | :--- | :--- |
| A | Item Name | Product name | Logitech K120 USB Keyboard | Yes |
| B | Category | Category name | Computer Peripherals | Optional |
| C | Unit | Unit of measure | Pcs | Optional |
| D | Purchase Price | Cost price without tax | 350.00 | Optional |
| E | Retail Price | Selling price | 550.00 | Yes |
| F | Wholesale Price | Wholesale rate | 480.00 | Optional |
| G | GST Rate | Tax percentage | 18 | Optional |
| H | HSN Code | Tax code | 8471 | Optional |
| I | Opening Stock | Stock count | 25 | Optional |
| J | Barcode | Barcode or SKU | 8901234567890 | Optional |
> "Import completed! Added: 124, Skipped (duplicates): 2 items."
Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on connecting WhatsApp gateways, configuring webhooks, and setting up automated keyword auto-responders for customer queries.
Shrelix ERP includes an intelligent WhatsApp automation engine. In addition to one-click document dispatch, it can function as an interactive 24/7 business chatbot, automatically replying to customer requests for account ledgers, unpaid invoices, or payment QR codes.
settings.php).whatsapp_api_key).https://erp.shrelix.com/[workspace]/api_whatsapp_webhook.php?user_id=[admin_id]
In the Customer Automation Rules card:
unknown_help to send a helpful menu when an unrecognized message is received.help, menu, hi, hello, options, start.ledger_enabled.ledger, account, statement, hisab.invoice_enabled.invoice, invoices, bill.payment_enabled.payment, pay, upi, qr, online payment.To inspect outbound messages, deliverability status, and inbound chat interactions:
automation_logs.php).Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on disbursing payments to vendors, recording bank and cheque references, and reconciling accounts payable ledgers.
This guide explains how to record outgoing disbursements to suppliers, allocate payments against specific purchase bills or general account balances, and maintain reconciled accounts payable ledgers in Shrelix ERP (purchase_payment.php).
purchases or purchase_ledger.purchase_ledger.php) or Purchases > Supplier Payment (purchase_payment.php).Bank Transfer (NEFT/RTGS/IMPS), Cheque, UPI, or Cash.To inspect the updated vendor statement:
purchase_ledger.php).Current Financial Year).Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on parking sales transactions in progress and recalling them without losing scanned items.
In fast-paced retail counters, customers frequently step away to pick up an additional item, ask a family member a question, or find their payment card. The Hold Bill function allows cashiers to freeze the current cart in progress, serve subsequent customers immediately, and restore the frozen cart when the customer returns.
Customer in blue shirt or Checking shelf 4).api_hold_bill_save.php, stores it in the hold_bills table, and immediately resets the billing form to a blank state.5 mins ago).api_hold_bill_load.php.api_hold_bill_delete.php.If a customer abandons their cart and leaves the store:
Read the comprehensive manual in our official developer and software documentation.
Task-oriented guide on generating dynamic UPI payment QR codes and sending instant payment request links via WhatsApp or SMS.
Shrelix ERP allows you to collect outstanding receivables remotely without paying gateway commissions by leveraging India's Unified Payments Interface (UPI). You can generate dynamic QR codes pre-populated with your VPA and the exact outstanding amount, and dispatch payment links directly to customers over WhatsApp.
yourshop@icici).sales or sales_bills.send_payment_link.php).₹2,500.00).Payment for INV-20261018-0421.upi://pay?pa=[your_vpa]&pn=[shop_name]&am=[amount]&cu=INR&tn=[note]
> "Dear Customer, your payment request of ₹2,500.00 from Apex Retailers is ready. Please click here to complete payment via UPI: https://erp.shrelix.com/apex/pub_ledger.php?token=k8M9pX2y"
When the customer completes the UPI transfer to your bank:
payment.php).Read the comprehensive manual in our official developer and software documentation.
Comprehensive technical catalog of all user interface screens, server endpoints, and functional modules in Shrelix ERP.
This document provides an exhaustive inventory of every page, view, and primary endpoint within the Shrelix ERP application codebase.
| Endpoint | Title / Screen | Purpose | Required Role / Permission |
| :--- | :--- | :--- | :--- |
| login.php | User Sign In | Multi-tenant authentication, session binding, and role loading. | Public / Guest |
| logout.php | Sign Out | Terminates active user session and redirects to login. | Authenticated User |
| redirect.php | Tenant Router | Resolves tenant subdomains or subpaths and directs traffic. | Public |
| Endpoint | Title / Screen | Purpose | Required Role / Permission |
| :--- | :--- | :--- | :--- |
| dashboard.php | Business Dashboard | Displays live revenue, receivables, stock alerts, sales graphs, and quick actions. | Authenticated User |
| Endpoint | Title / Screen | Purpose | Required Role / Permission |
| :--- | :--- | :--- | :--- |
| sale.php | Create / Edit Sale | Point-of-sale invoice generator with barcode lookup, discounts, taxes, and hold bills. | sales or sales_bills |
| inv.php | Invoice Web Print | Thermal receipt (58mm/80mm) and A4 invoice web preview with dynamic UPI QR. | Authenticated User |
| invoice.php | Invoice Detail View | Formatted document viewer with WhatsApp share, status indicators, and actions. | Authenticated User |
| pdf_invoice.php | PDF Invoice Generator | Server-side PDF generation engine. | Authenticated User |
| sale_orders.php | Sales Orders List | Registry of customer bookings, delivery dates, and status filters. | sales_orders |
| sale_order.php | Create / Edit Order | Form for taking customer pre-orders without depleting stock. | sales_orders |
| sale_order_invoice.php| Convert Order to Bill | Closes a sales order and pre-fills line items into an active sales invoice. | sales_bills |
| sale_order_view.php | Order Detail View | View order line items, client shipping details, and fulfillment state. | sales_orders |
| pdf_sale_order.php | PDF Sales Order | Export order confirmation document. | sales_orders |
| sale_returns.php | Sale Returns Registry | List of issued credit notes and customer returns. | sales_returns |
| sale_return.php | Create Sale Return | Issues Credit Note, adds stock back to branch, and credits customer balance. | sales_returns |
| sale_return_invoice.php| Credit Note View | Printable credit voucher. | sales_returns |
| pdf_sale_return.php | PDF Credit Note | Official downloadable Credit Note PDF. | sales_returns |
| customers.php | Manage Customers | Directory of customer profiles, credit limits, CSV import/export, and branch transfers. | customers |
| customer_order_links.php| Customer Order Links| Catalog links, QR codes, and self-ordering URL management. | customers |
| payment.php | Customer Payments | Inward payment receipt entry (cash, UPI, bank transfer, cheque). | payments |
| pay.php | Payment Receipt View | Formatted payment voucher printout. | payments |
| ledger.php | Customer Sales Ledger| Itemized chronological debit/credit statement and running balances. | sales_ledger |
| send_payment_link.php | Send Payment Link | Generates dynamic UPI QR codes and sends payment request links over WhatsApp. | sales or sales_bills |
| Endpoint | Title / Screen | Purpose | Required Role / Permission |
| :--- | :--- | :--- | :--- |
| purchases.php | Purchase Bills List | Inward bills registry, vendor invoice numbers, and payment status. | purchase_bills |
| purchase_create.php | Create Purchase Bill | Records inward consignments, landed costs, updates branch stock, and logs payables. | purchase_bills |
| purchase_inv.php | Purchase Bill Print | Printable voucher of inward goods. | purchase_bills |
| purchase_invoice.php| Purchase Bill Details| Formatted view of inward bill lines, taxes, and supplier info. | purchase_bills |
| pdf_purchase.php | PDF Purchase Bill | Downloadable inward bill PDF. | purchase_bills |
| purchase_orders.php | Purchase Orders List | Registry of procurement orders issued to suppliers. | purchase_orders |
| purchase_order.php | Create Purchase Order| Prepares supplier orders with delivery expectations. | purchase_orders |
| purchase_order_invoice.php| Convert PO to Bill | Converts fulfilled purchase orders into inward stock bills. | purchase_bills |
| purchase_order_view.php| Purchase Order View | View PO lines and dispatch status. | purchase_orders |
| pdf_purchase_order.php| PDF Purchase Order | Downloadable vendor PO document. | purchase_orders |
| purchase_returns.php| Purchase Returns List| Registry of supplier returns and debit notes. | purchase_returns |
| purchase_return.php | Create Purchase Return| Deducts inventory from branch, issues debit note, and lowers supplier balance. | purchase_returns |
| pdf_purchase_return.php| PDF Debit Note | Downloadable Debit Note document. | purchase_returns |
| suppliers.php | Manage Suppliers | Vendor directory, GSTIN records, bank account profiles, and payables. | suppliers |
| purchase_payment.php| Supplier Payments | Records outgoing disbursements to vendors. | purchases |
| purchase_ledger.php | Supplier Ledger | Vendor statement with debit/credit transactions and net payable balance. | purchase_ledger |
| Endpoint | Title / Screen | Purpose | Required Role / Permission |
| :--- | :--- | :--- | :--- |
| items.php | Manage Items | Master product catalog, pricing tiers, HSN, barcodes, and CSV import/export. | inventory_items |
| categories.php | Categories Master | Product category management. | categories |
| warehouse.php | Warehouse Operations | Inter-branch stock transfers, audit adjustments, and movement transaction history. | warehouse |
| synced_invoices.php | Synced Invoices | Cross-tenant B2B incoming invoice inbox, item mapper, and 1-click import. | Super Admin |
| Endpoint | Title / Screen | Purpose | Required Role / Permission |
| :--- | :--- | :--- | :--- |
| datewise_report.php | Date-Wise Transactions| Unified financial journal filtering sales, purchases, and payments across channels. | reports |
| tax_report.php | GST Tax Report | GSTR-1 & GSTR-3B tax summary, B2B vs B2C segregation, and HSN summary. | Super Admin / reports |
| report_commission.php| Sales Commission | Calculates staff commission on net sales excluding taxes. | Super Admin |
| report_staff.php | Staff Performance | Summarizes sales activity and transaction volume per employee. | Super Admin |
| Endpoint | Title / Screen | Purpose | Required Role / Permission |
| :--- | :--- | :--- | :--- |
| branches.php | Manage Branches | Multi-store location setup, default branch designation, and stock sync mode. | Super Admin |
| staff.php | Manage Staff | Employee login profiles, modular permissions, branch bindings, and account locks. | Super Admin |
| location_dashboard.php| Live Tracking Map | Real-time GPS map tracking field staff locations, battery %, and telemetry. | Super Admin |
| location_history.php | Route History | Trajectory replay, stop durations, and customer meeting inspection. | Super Admin |
| location_settings.php| Tracking Schedules | Configures duty hours, active tracking days, and ping intervals. | Super Admin |
| staff_app_share.php | Staff App & APK | Distributes ShrelixStaff.apk and generates device pairing QR codes. | Super Admin |
| mobile_staff_portal.php| Mobile Staff Portal | Touch-optimized web interface for field order booking and balance lookups. | Authenticated Staff |
| Endpoint | Title / Screen | Purpose | Required Role / Permission |
| :--- | :--- | :--- | :--- |
| automation_logs.php | Message Logs | Detailed dispatch and webhook logs for WhatsApp automation. | Super Admin |
| settings.php | System Settings | Toggles for warehouse, HSN, round-off, negative stock, and WhatsApp rules. | settings / Super Admin |
| payment_methods.php | Payment Methods | Manage active payment modes (Cash, UPI, Card, Bank Transfer). | settings / Super Admin |
| profile.php | Business Profile | Shop name, address, GSTIN, timezone, bank accounts, and UPI VPA. | Super Admin / Staff |
| Endpoint | Title / Screen | Security Mechanism | Description |
| :--- | :--- | :--- | :--- |
| pub_catalog.php | Digital Product Catalog | 8-character share_token | Client catalog browsing and self-service order placement. |
| pub_ledger.php | Online Customer Statement | 8-character share_token | Read-only ledger statement with instant UPI QR settlement. |
| pub_purchase_ledger.php| Online Supplier Statement| 8-character share_token | Read-only supplier balance statement. |
| pub_return_create.php| Public Return Request | 8-character share_token | Customer return submission form. |
| pub_tax_report.php | Public CA Tax Report | 8-character share_token | Read-only GST report portal for Chartered Accountants. |
Read the comprehensive manual in our official developer and software documentation.
Detailed state-machine specifications, status definitions, and transition rules for all commercial documents in Shrelix ERP.
Shrelix ERP enforces deterministic state transitions across commercial documents to prevent orphaned records, double-billing, and accounting inconsistencies.
Sales Invoices represent statutory tax demands and commercial debts.
stateDiagram-v2
[*] --> Udhar : Amount Paid < Grand Total
[*] --> Paid : Amount Paid == Grand Total
Udhar --> Paid : FIFO Payment / Credit Applied
Paid --> Udhar : Payment Voided or Return Adjusted
paid: The entire grand total of the invoice has been satisfied. The remaining receivable on this specific invoice is ₹0.00.udhar: The invoice has an outstanding balance due (either partial payment was received or zero payment was made at the time of sale).Whenever an unallocated payment or credit note (sales return) is posted in the system, Shrelix ERP automatically runs its debt settlement engine:
udhar to paid.Sales Orders record customer requests without depleting physical inventory.
stateDiagram-v2
[*] --> Pending : Order Created
Pending --> Converted : Convert to Invoice
Pending --> Cancelled : Customer Cancellation
| Status | Meaning | Inventory Depletion | Ledger Impact |
| :--- | :--- | :--- | :--- |
| pending | Order recorded, awaiting fulfillment or payment confirmation. | None (Stock unchanged) | None |
| converted | Order packed and converted into an official Sales Invoice. | Yes (Stock decremented via generated invoice) | Posts to sales ledger |
| cancelled | Customer aborted the order. | None | None |
Purchase Bills represent inward inventory liabilities owed to vendors.
paid: The bill has been completely disbursed and paid off.udhar: Accounts payable liability remains open on this bill.Procurement requests issued to suppliers.
pending: Order dispatched to supplier, awaiting delivery.received: Goods delivered, checked against PO, and converted into an inward Purchase Bill.cancelled: Order revoked before dispatch.Exchanged across independent tenant organizations via synced_invoices.
stateDiagram-v2
[*] --> Pending : Vendor Issues Sales Invoice
Pending --> Approved : Buyer Maps Lines & Accepts
Pending --> Rejected : Buyer Rejects (Wrong Terms)
Pending --> ChangesRequested : Price / Qty Discrepancy
| Status | Description | System Action |
| :--- | :--- | :--- |
| pending | Sales invoice delivered to buyer's inbox. | Awaiting buyer line item mapping and approval. |
| approved | Buyer accepted invoice. | Automatically generates inward Purchase Bill, increments branch stock, and logs payable. |
| rejected | Buyer rejected invoice. | Inward bill is aborted. Rejection reason returned to vendor. |
| changes_requested | Buyer flagged discrepancy. | Vendor notified to re-issue corrected invoice. |
Managed at the Central Platform level (subscriptions).
trial: 14-day full-feature trial period. Limited to 20 invoices, 20 items, and 20 customers.active: Verified paid subscription plan. System operates without record count limits.expired: Subscription validity passed. Transactions are blocked until renewed via billing portal.cancelled: Account terminated by customer or administrator.Read the comprehensive manual in our official developer and software documentation.
Authoritative mathematical reference of all financial, taxation, profit, commission, and ledger algorithms used in Shrelix ERP.
This document provides the authoritative mathematical formulas, taxation algorithms, and ledger reconciliation logic implemented within Shrelix ERP.
Indian GST can be calculated in two modes: Tax Exclusive (pricing does not include tax) and Tax Inclusive (pricing is inclusive of tax).
Given:
$$\text{Taxable Amount} = Q \times P$$
$$\text{GST Amount} = \text{round}\left(\text{Taxable Amount} \times \frac{R}{100},\; 2\right)$$
$$\text{Line Total} = \text{Taxable Amount} + \text{GST Amount}$$
Given Gross Inclusive Line Total ($T$) and GST Rate ($R$):
$$\text{Taxable Amount} = \text{round}\left(T \times \frac{100}{100 + R},\; 2\right)$$
$$\text{GST Amount} = T - \text{Taxable Amount}$$
When the seller state matches the buyer state (Intra-State supply):
$$\text{CGST} = \text{round}\left(\frac{\text{GST Amount}}{2},\; 2\right)$$
$$\text{SGST} = \text{GST Amount} - \text{CGST}$$
When supplying across state boundaries (Inter-State supply):
$$\text{IGST} = \text{GST Amount},\quad \text{CGST} = 0,\quad \text{SGST} = 0$$
Given Subtotal of all lines ($\sum \text{Taxable}$), Total GST ($\sum \text{GST}$), Extra Charges ($C$), and Bill Discount ($D$):
$$\text{Calculated Total} = \sum \text{Taxable} + \sum \text{GST} + C - D$$
If round_off_total is enabled in settings:
$$\text{Grand Total} = \text{round}(\text{Calculated Total})$$
$$\text{Round-Off Variance} = \text{Grand Total} - \text{Calculated Total}$$
For every item sold, the ERP evaluates the margin against the item's current replacement cost (purchase_price):
$$\text{Unit Profit} = \text{Selling Price} - \text{Purchase Price}$$
$$\text{Profit Amount} = \text{Unit Profit} \times \text{Quantity}$$
Commission is calculated strictly on the Taxable Sale Value (Excluding GST):
$$\text{Sale Without GST} = \text{Unit Selling Price} \times \text{Quantity}$$
$$\text{Line Commission} = \text{Sale Without GST} \times \left(\frac{\text{Commission Percent}}{100}\right)$$
Implemented in customers.php:
$$\text{Total Invoiced} = \sum \text{Invoices Total (Udhar)} + \sum \text{Invoices Total (Paid)}$$
$$\text{Outstanding Due} = \max\Big(0,\; \text{Total Invoiced} - \sum \text{Payments} - \sum \text{Sale Returns}\Big)$$
Implemented in suppliers.php:
$$\text{Outstanding Payable} = \max\Big(0,\; \sum \text{Purchase Bills} - \sum \text{Purchase Payments} - \sum \text{Purchase Returns}\Big)$$
Deterministic First-In, First-Out reconciliation procedure:
Algorithm FIFO_Reconciliation:
Input: Customer Invoices, Payment Records, Sale Return Records
explicit_paid = Sum of payments directly linked to invoice.id
explicit_returned = Sum of returns directly linked to invoice.id
remaining_due = MAX(0, invoice.total - explicit_returned - explicit_paid)
IF remaining_due > 0 AND general_return_pool > 0 THEN:
deduct = MIN(general_return_pool, remaining_due)
remaining_due = remaining_due - deduct
general_return_pool = general_return_pool - deduct
END IF
IF remaining_due > 0 AND general_payment_pool > 0 THEN:
deduct = MIN(general_payment_pool, remaining_due)
remaining_due = remaining_due - deduct
general_payment_pool = general_payment_pool - deduct
END IF
IF remaining_due == 0 THEN:
invoice.status = 'paid'
ELSE:
invoice.status = 'udhar'
END IF
Save updated invoice status
END FOR
Read the comprehensive manual in our official developer and software documentation.
Complete security reference covering user role hierarchies, granular permission flags, account locking, and branch access controls.
Shrelix ERP implements a multi-tiered security model combining user roles, granular module permissions, branch data isolation, and instant account locking.
| Role Key | Name | Capabilities & Access Scope |
| :--- | :--- | :--- |
| admin | Super Administrator | Absolute system control. Bypasses individual permission checks. Can access multi-branch controls, company settings, billing portals, staff account management, and financial tax reports. |
| user | Staff Member | Access strictly constrained by the delegated permission switches assigned in their staff profile and restricted to their assigned branch. |
Staff permissions are configured via intuitive toggle switches in the Staff Management interface and evaluated dynamically across each module:
{
"sales_bills": true,
"sales_orders": true,
"sales_returns": true,
"customers": true,
"payments": true,
"sales_ledger": true,
"purchase_bills": false,
"purchase_orders": false,
"purchase_returns": false,
"suppliers": false,
"purchase_ledger": false,
"inventory_items": true,
"categories": false,
"warehouse": false,
"reports": true,
"settings": false
}
| Domain | Permission Key | Controlled Screens & Capabilities |
| :--- | :--- | :--- |
| Sales | sales_bills | Access to sale.php, inv.php, invoice.php, and pdf_invoice.php. Ability to create and print sales invoices. |
| | sales_orders | Access to sale_orders.php, sale_order.php, sale_order_view.php, and pdf_sale_order.php. |
| | sales_returns| Access to sale_returns.php, sale_return.php, sale_return_view.php, and Credit Note generation. |
| | customers | Access to customers.php and customer_order_links.php. Ability to create and edit customer profiles. |
| | payments | Access to payment.php and pay.php. Ability to record and print customer payment vouchers. |
| | sales_ledger | Access to ledger.php and customer balance statements. |
| Purchases | purchase_bills| Access to purchases.php, purchase_create.php, purchase_inv.php, and inward bill entries. |
| | purchase_orders| Access to purchase_orders.php, purchase_order.php, and purchase_order_view.php. |
| | purchase_returns| Access to purchase_returns.php, purchase_return.php, and Debit Note generation. |
| | suppliers | Access to suppliers.php. Ability to register and manage vendors. |
| | purchase_ledger| Access to purchase_ledger.php and supplier payable balances. |
| Inventory | inventory_items| Access to items.php. Ability to view, create, edit items, and print barcodes. |
| | categories | Access to categories.php. Ability to create and classify categories. |
| | warehouse | Access to warehouse.php. Ability to perform stock transfers and audit adjustments. |
| Reports | reports | Access to datewise_report.php and tax_report.php (if HSN mode enabled). |
| Settings | settings | Access to settings.php and payment_methods.php. |
> [!NOTE]
> Backward Compatibility: If legacy permissions exist (sales: true, purchases: true, inventory: true), the permission evaluation engine automatically maps them to grant access across all submodules in that domain.
Administrators can lock or suspend any staff account instantly from the Staff Management interface.
When locked:
> "🔒 Your account is locked. You cannot create sales or add items. Please contact the administrator."
sale.php, purchase_create.php, payment.php) reject write attempts immediately.Read the comprehensive manual in our official developer and software documentation.
Complete reference of all configuration options, toggle behaviors, validation constraints, and database settings keys.
Shrelix ERP stores organization configuration parameters in the settings registry, allowing administrators to customize billing behavior, tax formats, and automation preferences.
| Setting Key | Data Type | Default | Description & Operational Impact | Validation & Lock Rules |
| :--- | :--- | :--- | :--- | :--- |
| warehouse_enabled | String ('1', '0') | '1' | Controls physical inventory tracking and warehouse operations. | Cannot be set to '0' if any purchase bills exist in the database. |
| enable_hsn_code | String ('1', '0') | '0' | Switches invoice headers and tax tables to official Indian GST Tax Invoice mode with HSN codes. When '0', documents are titled "Estimate". | Cannot be set to '0' if any items, sales invoices, or purchase bills have recorded HSN codes. |
| round_off_total | String ('1', '0') | '0' | Automatically rounds calculated invoice grand totals to the nearest integer rupee. | None |
| prevent_negative_stock| String ('1', '0') | '0' | Blocks invoice creation if requested item quantity exceeds available branch stock. | None |
| default_sale_mode | String | 'retail' | Sets the initial sale mode on sale.php (retail or wholesale). | Must be 'retail' or 'wholesale'. |
| enable_mrp | String ('1', '0') | '0' | Displays an optional MRP column on billing and item screens. | None |
| enable_shipping_address| String ('1', '0') | '0' | Enables separate shipping name, phone, and delivery address inputs for customers and invoices. | None |
| commission_percent | Float | 0.00 | Percentage of taxable sales value credited to sales staff as commission. | Must be $\ge 0$. |
| profit_method | String | 'standard'| Cost basis used for margin computation (standard uses latest purchase_price). | 'standard' |
| invoice_terms | Text | Standard Text | Standard legal declaration and terms printed at the bottom of customer invoices. | None |
| whatsapp_api_key | String | '' | Authentication bearer token for the external WhatsApp Gateway API. | None |
| default_dashboard_range| String | '1_month'| Default date filter on the executive dashboard (today, 1_week, 1_month, 1_year). | None |
| automation_customer | JSON | {} | Automation configuration for customer WhatsApp queries. | Structured JSON |
| automation_supplier | JSON | {} | Automation configuration for supplier WhatsApp queries. | Structured JSON |
| payment_methods | JSON | ["Cash", "UPI", "Card", "Bank Transfer"] | Active payment method options available in dropdowns. | Valid JSON array |
{
"enabled": true,
"unknown_help": true,
"help_keywords": "help, menu, hi, hello, options, start",
"limit": 5,
"ledger_enabled": true,
"ledger_keywords": "ledger, account, statement, hisab",
"ledger_months": 1,
"invoice_enabled": true,
"invoice_keywords": "invoice, invoices, bill",
"order_enabled": true,
"order_keywords": "order, orders, sale order, sales order",
"return_enabled": true,
"return_keywords": "return, returns, sales return",
"payment_enabled": true,
"payment_keywords": "payment, pay, upi, qr, online payment, pay online"
}
{
"enabled": true,
"unknown_help": true,
"help_keywords": "help, menu, hi, hello, options, start",
"limit": 5,
"ledger_enabled": true,
"ledger_keywords": "ledger, account, statement",
"ledger_months": 1,
"bill_enabled": true,
"bill_keywords": "bill, bills, invoice"
}
Read the comprehensive manual in our official developer and software documentation.
Technical architecture, background services, offline queueing, and telemetry contracts of the native companion mobile app.
The ShrelixStaff Companion Application (mobile_app/ / ShrelixStaff.apk) is a purpose-built native Android utility designed for field sales executives, delivery personnel, and warehouse staff.
+---------------------------------------------------------------------------------+
| ShrelixStaff Android App |
+---------------------------------------------------------------------------------+
| UI Layer: Login & QR Pairing Activity (ZXing QR Scanner) |
| Order Booking & Catalog Viewer (WebView / Native UI) |
| Duty Status & GPS Battery Widget |
+---------------------------------------------------------------------------------+
| Background Core: LocationTrackingService (Foreground Service with Sticky Notif)|
| ScheduleWorker (Android WorkManager) |
| TelemetryBatchQueue (SQLite Offline Buffer) |
+---------------------------------------------------------------------------------+
| Network Sync: Retrofit / OkHttp Client (HTTPS + Token Auth) |
+---------------------------------------------------------------------------------+
com.shrelix.staffShrelixStaff.apk (439 KB, optimized lightweight binary)shrelix_release.jks)zxing-core.jar: Fast, offline QR code decoding for device pairing.Field representatives move in and out of basements, elevators, and areas with spotty cellular reception. ShrelixStaff guarantees reliable telemetry without draining phone batteries:
To prevent modern Android power management (Doze Mode) from terminating the background service, ShrelixStaff executes as a registered Android Foreground Service with a persistent notification:
> "Shrelix Staff Service: Active on duty"
When mobile data connectivity drops:
api_staff_location_batch.php.To maximize battery life during long customer meetings or stationary traffic:
staff_app_share.php.{
"server_url": "https://erp.shrelix.com",
"workspace": "apex",
"staff_id": 14,
"pairing_token": "a9e2f810c93b74..."
}
api_staff_device_auth.php, and receives a permanent device_token.Read the comprehensive manual in our official developer and software documentation.
Quick-reference troubleshooting guide for diagnosing and resolving the most frequent operational challenges.
This article covers rapid diagnostic steps for the ten most frequent operational questions encountered by store managers and cashiers.
prevent_negative_stock setting is enabled under System > Settings, and the requested quantity exceeds physical inventory in your active branch.purchases.php) or perform a Stock Adjustment (warehouse.php).All Branches to a specific operational branch (e.g., Main Branch).is_locked = 1).staff.php).58mm or 80mm (matching your roll), and set Margins to None or Minimum.automation_logs.php for API response codes.Read the comprehensive manual in our official developer and software documentation.
Diagnostic steps for resolving invoice generation errors, negative stock blocks, round-off discrepancies, and printer formatting issues.
This guide provides targeted diagnostics for errors encountered during sales invoice creation, editing, and receipt printing.
sale.php.₹2,000 note for a ₹1,850 bill), enter 1850 in Amount Paid and hand back ₹150 change. Shrelix ERP records the exact settled amount against the invoice.items master table.items.php).Packing charges, Courier delivery, Installation fee) in the Extra Charge Note field.profile.php).shopname@upi) in the Bank UPI ID (VPA) field.58mm 210mm or 80mm 297mm (match your printer roll width).None.Default or 100%.Read the comprehensive manual in our official developer and software documentation.
Diagnostic steps for resolving branch stock variances, disabled warehouse settings, transfer mismatches, and CSV upload errors.
This guide addresses physical stock discrepancies, setting locks, and inventory audit variances.
0.00.sync_stock = 0), which maintains its own stock pool.warehouse.php).upload_max_filesize (typically 10MB), split the CSV into smaller batches of 1,000 items each.items.php remained unchanged.branch_id.stock_transactions and create irreconcilable financial reporting discrepancies.Read the comprehensive manual in our official developer and software documentation.
Diagnostic steps for resolving account lockouts, missing menu items, branch permission errors, and session timeouts.
This guide provides diagnostic procedures for permission errors, invisible navigation menus, and branch access barriers.
staff.php).Purchase Bills under Purchases).staff.php.https://portal.shrelix.com.staff.php. This immediately revokes their login credentials and blocks further access while preserving historical transaction authorship.login.php repeatedly.session.gc_maxlifetime = 2592000).ShrelixStaff.apk) which maintains permanent device token authentication without relying on browser cookie expiry.Read the comprehensive manual in our official developer and software documentation.
Diagnostic steps for resolving WhatsApp webhook delivery errors, unverified B2B partner invites, and invoice sync mapping failures.
This guide provides troubleshooting procedures for WhatsApp automation failures and cross-tenant B2B invoice synchronization stalls.
"ledger" or "balance", but receives no automated response.whatsapp_api_key contains a valid, non-empty bearer token.automation_logs.php).synced_invoices.php.purchase_line_mapping.js). Ensure every incoming row has either an existing local item selected or has Create As New Item selected.Read the comprehensive manual in our official developer and software documentation.
Step-by-step lesson on creating a sale, handling item discounts, extra charges, hold bills, and payment recording.
This tutorial guides you through the complete sales invoicing workflow in Shrelix ERP. By following this lesson, you will learn how to look up customers, scan or select inventory items, apply item-level and bill-level adjustments, handle POS hold bills, settle payments, and issue an official tax invoice.
By the end of this tutorial, you will be able to:
sale.php).Before beginning:
sale.php).INV-20261018-0421) and current date.8471)₹500.00)18%)3).Enter to append another product row if needed.Imagine a scenario where the customer stepped away to grab an additional product or forgot their wallet, but you have customers waiting in line behind them:
Customer checking extra cables).In the invoice calculation summary card:
50.00 (e.g., for local delivery or handling).Express Courier Delivery).20.00 to apply a promotional concession.$$\text{Subtotal} + \text{Total GST} + \text{Extra Charge} - \text{Discount} = \text{Grand Total}$$
In the Payment Details section:
0.00. The invoice status will be marked Udhar, posting the entire amount to the customer's ledger balance.₹1,000.00). The remaining balance posts to the customer's ledger, and the invoice status is marked Udhar until fully settled.Cash, UPI, Card, or Bank Transfer.After saving, the system redirects you to the formatted Invoice Preview (invoice.php):
You have successfully completed a full sales transaction from start to finish!
Read the comprehensive manual in our official developer and software documentation.
Step-by-step lesson on creating vendor records, entering purchase bills, updating inventory, and managing supplier payables.
This tutorial teaches you how to record inward shipments, register vendor invoices, automatically update branch stock counts, and record supplier payables in Shrelix ERP.
By the end of this tutorial, you will be able to:
purchase_create.php).purchases or purchase_bills permission.Before entering a purchase bill, record the vendor's business identity and bank accounts:
suppliers.php).National Electronics Distributors+919833445566orders@nationalelec.comBuilding 8, Industrial Estate, Sector 3, Navi Mumbai27AAACN0123M1Z5purchases.php).purchase_create.php.National Electronics Distributors from the dropdown. The registered phone, address, and GSTIN populate automatically.NED-2026-9812).> [!NOTE]
> Recording the vendor's original invoice number is vital for input tax credit (ITC) reconciliation against GSTR-2B.
In the Items grid:
Wireless Optical Mouse). Select the item from the dropdown.20).₹340.00).18%.200.00 and describe it in the note (e.g., Freight & Transport Charges).$$\text{Subtotal} + \text{GST} + \text{Extra Charges} - \text{Discount} = \text{Net Bill Total}$$
In the Payment Details section:
0.00.₹3,000.00).Bank Transfer, Cheque, UPI, or Cash.Upon saving:
items.php).Wireless Optical Mouse.+20 in your active branch!warehouse.php).in+20purchasepurchase_ledger.php).National Electronics Distributors.You have successfully processed an inward purchase bill and replenished your stock!
Read the comprehensive manual in our official developer and software documentation.
Step-by-step lesson on enabling customer self-service links, sharing online catalogs, and converting incoming orders to invoices.
Shrelix ERP provides integrated customer self-service capabilities without requiring your clients to install special apps. Every customer can receive a unique, secure link to browse your inventory catalog, view live retail or wholesale prices, and submit orders directly into your ERP.
By the end of this tutorial, you will be able to:
customer_order_links.php).pub_catalog.php) via WhatsApp or QR code.customers.php).customer_order_links.php).Rohit Verma).https://erp.shrelix.com/[workspace]/pub_catalog.php?token=[8-char-share-token]
k8M9pX2y) tied directly to that customer's profile.You can share the catalog through multiple channels:
> "Hello Rohit Verma, here is our latest product catalog where you can place orders online with live availability: https://erp.shrelix.com/apex/pub_catalog.php?token=k8M9pX2y"
When the customer opens the link on their smartphone, tablet, or desktop:
Mouse, Cable).As soon as an order is placed:
sale_orders.php).SO-20261018-0012)Rohit Verma2 Items₹1,416.00Pendingsale_order_view.php) to inspect the requested line items, delivery preferences, and customer notes.When you are ready to pack and dispatch the items:
sale_order_invoice.php).Udhar if charging to account).The order status automatically transitions from Pending to Converted, creating an official sales invoice, depleting physical inventory, and posting to the ledger!
Read the comprehensive manual in our official developer and software documentation.
Step-by-step lesson on installing the ShrelixStaff Android APK, pairing devices, configuring working schedules, and monitoring live field routes.
Shrelix ERP includes an integrated enterprise field telemetry system. Using the native ShrelixStaff Android application (ShrelixStaff.apk), businesses can monitor field sales representatives, delivery drivers, and service technicians in real time, view historical route journeys, and verify customer visit timestamps.
By the end of this tutorial, you will be able to:
ShrelixStaff.apk on an Android smartphone.location_dashboard.php).location_history.php).staff.php).Amit Kumaramit_salesamit@apexretail.com+919876501234Main Branch).Sale Orders, Customers).staff_app_share.php)..apk file.To ensure enterprise security, each phone must be authenticated to prevent unauthorized access or fake GPS submissions:
staff_app_share.php), locate Amit Kumar in the staff device table.api_staff_device_auth.php, binds the device's unique identifier, and prompts for Android system permissions:You have full control over when location tracking occurs to respect staff privacy during off-duty hours:
location_settings.php).Monday through Saturday).09:30 AM) and end time (e.g., 07:00 PM).30 seconds or 60 seconds).> [!NOTE]
> The ShrelixStaff background service checks the active schedule before transmitting coordinates. Outside designated duty hours or on non-working days, tracking automatically pauses.
location_dashboard.php).To inspect a field trip after the working day:
location_history.php).Amit Kumar.You have successfully deployed and configured field staff GPS tracking!
Read the comprehensive manual in our official developer and software documentation.
Step-by-step lesson on linking two enterprises on the Shrelix ERP network for automated B2B invoice-to-purchase-bill synchronization.
One of Shrelix ERP's most powerful capabilities is its Cross-Tenant B2B Invoice Synchronization Network. When both a supplier (Company A) and a buyer (Company B) use Shrelix ERP, sales invoices generated by the supplier can automatically beam directly into the buyer's system as draft purchase bills.
This eliminates manual double-entry, eliminates data entry errors, simplifies item code mapping, and expedites tax reconciliation.
By the end of this tutorial, you will be able to:
Before invoices can exchange automatically, the two businesses must establish a mutual handshake:
customers.php).Now, log into Company B (The Buyer):
+1.synced_invoices.php).> "Company A invites you to connect for automated invoice synchronization."
connected across both organizations.sale.php).Heavy Duty Surge Protector (Qty: 10, Rate: ₹450.00, GST: 18%).Cat6 Ethernet Cable 305m (Qty: 2, Rate: ₹2,800.00, GST: 18%).0.00 for credit sale).INV-20261018-0911).api_sync.php.Switch back to Company B:
synced_invoices.php).Company AINV-20261018-0911₹11,918.00Pending ApprovalCompany A may call the product "Cat6 Ethernet Cable 305m", while Company B has it saved in their inventory as "LAN Cable Drum (Cat-6)". Shrelix ERP provides an intuitive mapping utility (purchase_line_mapping.js):
+-----------------------------------------------------------------------------------------+
| Incoming Supplier Line Item | Your Local Item Catalog Match |
+-----------------------------------------------------------------------------------------+
| Heavy Duty Surge Protector (10x) | [Select: Surge Spike Guard 6-Socket (Existing)] |
| Cat6 Ethernet Cable 305m (2x) | [Select: LAN Cable Drum Cat-6 (Existing)] |
+-----------------------------------------------------------------------------------------+
purchase_bills).INV-20261018-0911).+10 and +2 quantities to Company B's physical branch stock in item_branch_stock.stock_transactions.You have mastered cross-tenant B2B invoice synchronization!
Read the comprehensive manual in our official developer and software documentation.
Forgot your ERP password? Learn how to securely reset your credentials using the password recovery flow.
If you have forgotten your password or cannot log into your Shrelix ERP workspace, follow these steps to reset it:
https://erp.shrelix.com/login.php).Tip: Workspace Super Admins can also reset or update staff passwords directly from the Staff & HR > Staff Directory screen.
Need direct help from our product team? Discover available support channels including WhatsApp, email, and live priority tickets.
Shrelix ERP provides dedicated support for enterprise and trial users:
support@shrelix.com.Our dedicated technical team is available to assist you with onboarding, data migration, and troubleshooting.
Chat directly with our support specialists for urgent inquiries and walkthroughs.
Chat on WhatsApp →Send detailed error reports, screenshots, or migration requests to our desk.
support@shrelix.comSubmit an inquiry ticket. Our solutions architect will respond within 2 hours.
Open Contact Form →