The Mini POS System defaults to Indian Rupee (₹) currency. This guide explains how the currency is implemented and how to change it to your local currency.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodecraftBySyed/Mini-POS-System/llms.txt
Use this file to discover all available pages before exploring further.
How Currency is Implemented
Currency Display Locations
The₹ symbol appears in several places throughout the app:
- Dashboard statistics - Today’s sales, total sales
- Product prices - Product list and POS grid
- Cart display - Item prices and totals
- Reports - Sales tables and summaries
- Receipts - Printed bills
Currency Formatting Function
The app uses amoney() helper function in js/shared.js:29:
js/shared.js
This function formats numbers to 2 decimal places but does not include the currency symbol. The symbol is added separately in the HTML.
Changing Currency Symbol
To change from ₹ (Rupee) to another currency, you need to update multiple files.Identify your currency
Common currency symbols:
- Dollar:
$(USD, CAD, AUD) - Euro:
€(EUR) - Pound:
£(GBP) - Yen:
¥(JPY) - Rupee:
₹(INR)
Update all HTML files
Search and replace
₹ across all HTML files.Files to update:index.htmlproducts.htmlpos.htmlreports.html
File-by-File Changes
Dashboard (index.html + js/dashboard.js)
POS System (js/pos.js)
Thermal Receipt (js/pos.js:142-164)
Update thegenerateThermalReceipt() function:
Reports (js/reports.js and js/app.js)
Quick Find & Replace
Use your code editor’s find and replace feature:Find all JavaScript occurrences
Find:
Replace with:
Files:
`₹${money (with backtick)Replace with:
`$${moneyFiles:
js/*.jsAlso find:`-₹${money→`-$${moneytotal ₹${money→total $${money
Currency Position
Some currencies appear after the amount (e.g., “100 kr” in Swedish Krona).Example: Changing to Euro (€) After Amount
Example: Changing to Euro (€) Before Amount
Advanced: Custom Formatting
For advanced currency formatting (thousands separators, different decimal places), modify themoney() function:
js/shared.js
js/shared.js
js/shared.js
Using
Intl.NumberFormat automatically handles symbol placement, decimal separators, and thousand separators based on locale.Testing Your Changes
Test with sample data
- Add products with various prices
- Create test sales
- View reports
- Print a receipt
- Check all pages for consistency
Complete File List
Files that contain currency symbols:index.html(2 occurrences)products.html(if applicable)pos.html(if applicable)reports.html(if applicable)js/dashboard.js(3 occurrences)js/pos.js(12+ occurrences)js/products.js(if separate file)js/reports.js(if separate file)js/app.js(15+ occurrences)