Agro Ledger - Smart Agricultural Finance Management
A specialized ledger and settlement system for agricultural businesses to manage complex customer debts, crop-based payments, and interest tracking.
Project Overview
A comprehensive enterprise solution designed for agricultural trade centers. Agro Ledger automates the complex process of settling customer bills using a mix of cash and crop payments (Paddy/Corn). The system handles real-time interest calculations, manages inventory-based payments, and features a custom-built thermal printing solution designed to solve Unicode rendering issues in regional languages.
Key Features
Automated settlement processing with multi-commodity payment support
Automated interest calculation for outstanding customer balances
Custom bitmap-based thermal printing for perfect Sinhala character rendering
Comprehensive multi-language support (English/Sinhala) across the UI
Real-time database backup and security management
Detailed settlement reporting with principal and interest breakdown
Project Gallery






Challenges & Solutions
Regional Language POS Printing
Standard thermal printers do not natively support Sinhala Unicode, leading to broken glyphs and unreadable receipts.
Engineered a bitmap-based receipt rendering process using html2canvas, with font synchronization to ensure complex Sinhala ligatures and characters render cleanly before printing.
Crop-to-Cash Settlements
Calculating final balances when payments are made in fluctuating commodity weights (Paddy/Corn) mixed with cash and interest.
Developed a robust settlement algorithm that normalizes commodity values based on unit prices and deducts them from a prioritized list of outstanding debts.
Offline Local Environment
The system must operate in remote agricultural hubs without reliable internet connectivity.
Optimized the entire stack for local Laragon/WAMP environments, removing all external CDN dependencies and implementing local asset management for libraries like SweetAlert and html2canvas.
