Xilnex-AutoCount - Account Code Mapping
Account Code Mapping connects Xilnex transaction components (sales types, item categories, payment methods) to AutoCount GL accounts and payment codes. This ensures transactions post to the correct financial accounts.
What Is Account Code Mapping?
Account Code Mapping establishes the relationship between:
- Xilnex transaction attributes (e.g., "Retail sale", "Coffee category", "Cash payment")
- AutoCount GL codes (e.g., "500-5000 Coffee Sales", "310-1000 Cash Account")
Without mapping, the system doesn't know which GL account to use when posting.
Core Mapping Types by Module
Sales Module Mappings

Mapping Type | Used For | Example |
Sales Account | Main revenue GL by sales type and item category | |
Sales Rounding Account | Rounding differences in sales | Rounding Adjustment → 550-0000 |
Sales Header Discount Account | Bill-level discounts (e.g., "20% off entire purchase") | Discount Allowed → 520-0000 |
Sales Item Discount Account | Item-level discounts (e.g., "Buy 1 Get 1") | Line Item Discount → 150-0000 |
| | Example |
| Product purchase GL by receive type and item category | Accessories Purchase → 610-0000 |
Purchase Invoice Variance Account | Price/rounding differences between GRN and invoice | Purchase Variance → 630-0000 |
Purchase Tax Variance Account | Tax differences between GRN and invoice | |
Payment Module Mappings

| | Example |
| Payment method (Cash, Card, E-Wallet, Voucher) to AutoCount journal type | |
| Specific card (Visa, MasterCard) | |
| Specific e-wallet or payment gateway | GrabPay → GRABPAY (310-1000) |
Step-by-Step Guide
Creating a Sales Account Mapping
- Go to Integration > AutoCount > Account Code
- Select module: Sales
- Click "Add data" button
- In the form, fill:
- Data (Value 1): Sales Type
- Value 2: Item Grouping Method
- Value 3: Category Value
- Ownership: All ownerships
- Store: All stores
- AutoCount account code: GL code from AutoCount
- Click "Save"
Creating a Payment Method Mapping
- Go to Integration > AutoCount > Account Code
- Select module: Payment (or Cash Sales → Payment sub-section)
- Click "Add data" button
- In the form, fill:
- Data (Value 1): Payment Method
- Value 2: Only when applicable
- Value 3: Only when applicable
- Ownership: All ownerships
- Store: All stores
- AutoCount account code: Payment Method Code from AutoCount
- Click "Save"
Creating a Purchase Account Mapping
- Go to Integration > AutoCount > Account Code
- Select module: Purchase
- Click "Add data" button
- In the form, fill:
- Data (Value 1): Receive type
- Value 2: Item grouping method
- Value 3: Accessories
- Ownership: All ownerships
- Store: All stores
- AutoCount account code: GL code from AutoCount
- Click "Save"
Creating a Discount Account Mapping
- Go to Integration > AutoCount > Account Code
- Select module: Sales
- Click "More" at the left to expand options
- Select "Sales header discount account"
- Click "Add data"
- In the form, fill:
- Data (Value 1): All or Specific sales type
- Value 2: When applicable
- Value 3: When applicable
- Ownership: All ownerships
- Store: All stores
- AutoCount account code: GL code from AutoCount
- Click "Save"
Tips for Accurate Mapping
- Get GL codes from AutoCount: Open AutoCount → File > G/L > Account Maintenance to see your Chart of Accounts.
- Get Payment codes from AutoCount: Open AutoCount → General > Maintenance > Payment Method Maintenance to see available payment codes.
- Map hierarchically: Start broad (e.g., "All sales types" → main GL), then narrow (e.g., "Retail Coffee" → specific GL) for detailed reporting.
- Test one mapping: Create one mapping, run a test post, verify it worked, then add more.
Related Articles
Xilnex-AutoCount - Portal Configurations
All integration rules and configurations are managed through the Xilnex Web Portal. This guide walks you through accessing the portal and introduces the three core configuration areas. Accessing the Xilnex Web Portal: Open your web browser and ...
Xilnex-AutoCount - What Gets Synchronized?
The Xilnex–AutoCount integration establishes a seamless, automated data exchange between your Xilnex Retail Management System and AutoCount Accounting System, so your operational transactions are automatically reflected in your financial records. 1. ...
Xilnex-AutoCount - Posting Cash Sales
Cash Sales posting consolidates daily retail POS transactions and posts them to AutoCount Cash Book Entry, providing accurate cash-flow visibility and daily revenue tracking. What Is Cash Sales Posting? Cash Sales posting: Consolidates all retail ...
Xilnex-AutoCount - Troubleshooting Common Posting Errors
Cash Sales Error Cause Solution "Missing mapping" A GL account or payment method wasn't mapped Go to Account Code, add the missing mapping, re-post "No data generated" No transactions in the date range Verify date range is correct and POS has ...
Xilnex-AutoCount - Document Field Mapping
Document Field Mapping specifies how Xilnex fields appear in AutoCount document fields. This includes header-level data (like Document Number and Customer) and detail-level data (like Item Description and Tax Code). What Is Document Field Mapping? ...
Recent Articles
Xilnex Auth - API Documentation
Introduction Xilnex Auth implements OAuth 2.0, a widely adopted authorization framework that enables secure access to protected resources by issuing access tokens to client applications. This document provides a comprehensive guide on how to use ...
Managing OAuth Client Credentials
Overview Xilnex Auth implements the OAuth 2.0 protocol to govern service-to-service authorization. Client credentials serve as the authentication identity for backend services, enabling them to authorize, or be authorized by, other services within ...
Downloading Store Sample CSV Template File in Xilnex Portal
Overview The Download Store Sample CSV Template File feature in Store Management Import and Log allows staff to download a sample template, containing all necessary fields and proper format for importing data into the system. Preparing imported files ...
Importing Store Details in Xilnex Portal
Overview The Import Store Details in Xilnex Portal is a function that allows users to import store data in bulk using CSV files. Users have the option to import the store details either With updating the existing records or Without updating the ...
Centralized Secondary Screen Media
Secondary Screen Guidelines Current Setup (Local Media) Currently, the secondary screen relies on a local folder to display media on the POS. Xilnex POS automatically creates a folder named "SecondaryMonitorMedia" on the desktop, or users can ...
Popular Articles
Basic - How to create a voucher-coupon
Voucher and coupon definition Voucher can be generated in bulk and can be used once Coupon can only be created one at a time (reusable code) and can be use multiple times Pre-voucher / coupon setup There are 2 things need to be prepared before we can ...
Understanding DuitNow QR Payment in ClassicPOS
Introduction This document introduces the DuitNow QR payment feature available in the Xilnex Retail POS, enabling merchants to accept payments conveniently through Malaysia's national QR payment standard. The integration of DuitNowQR simplifies the ...
Basic - How to change custom cost to another branch that don’t have custom cost
Change custom cost to another branch that don’t have custom cost 1. Get the item list from the location with custom cost (Item Code, Name, Custom Cost) 2. Make sure the Show Location Price are selected 3. Export the item list in Excel 4. The file ...
Intermediate - How to Bill & Post to Sales from Transfer Note
1.0 Purpose A bill is required from transfer note when an inventory transfer involves financial transactions, cost allocation, or compliance with tax and accounting regulations. It is used when stock is moved between outlets that operate as separate ...
Basic - How to enable E-Receipt Portal and QR Code Setup on Printing format in Xilnex
Enable E-Receipt Portal Enable the E-receipt functionality Once Enabled, you will be getting the E-Receipt portal link Continue under Theme & Styling, enabled for the E-Invoice (LHDN) You can customize the look and feel of the E-Receipt portal ...