Case study / 2026
Kalash Accounts - Tally Automation Platform
A Python/PySide6 desktop application for bank-statement processing, broker contract notes, rental invoices and inter-company loan reconciliation. It connects to TallyPrime through HTTP/XML and keeps review decisions visible before accounting entries are imported.
Primary result
One desktop workflow for document processing, reviewed accounting imports and reconciled reports.
Covers bank statements, broker contract notes, rent invoices and inter-company loans. Internal company project.
- Python
- PySide6
- TallyPrime
- HTTP / XML
- openpyxl
- pdfplumber
- ReportLab
- PyInstaller
- HTTP/XMLTally integration
- Tally integration
- PySide6Desktop review UI
- Desktop review UI
- DecimalFinancial arithmetic
- Financial arithmetic
- WindowsPackaged application
- Packaged application
Challenge
The problem to solve
Accounting work spans different document formats, company books and ledger names. Moving figures between spreadsheets and Tally is only part of the problem: incomplete inputs, ambiguous mappings and a repeated import can change the books incorrectly.
Approach
Technical direction
Separate parsing, financial calculations, company-scoped mapping, review and Tally transport. Use Decimal arithmetic, explicit reconciliation states, duplicate-voucher preflights and configurable second-person approval. Keep read operations separate from imports and package the review interface as a Windows desktop app.
Outcomes
Key outcomes
- 01Integrated TallyPrime company, ledger, voucher and balance reads with explicit HTTP/XML import operations.
- 02Built workflows for bank statements, broker contract notes, rent invoicing and inter-company loan reconciliation.
- 03Kept company-specific ledger choices and learned mapping rules separate from unapproved suggestions.
- 04Added duplicate-voucher checks and configurable maker-checker approval that prevents the preparer approving their own work.
- 05Produced Excel reconciliation workbooks and PDF rental invoices, and configured Windows packaging with PyInstaller.
- 06Maintained regression tests around parsing, financial calculations, XML transport, duplicate detection and shared-master conflicts.
Process
Process & architecture
A review workflow, not a blind import
The application separates document reading from accounting writes. Parsed transactions are reviewed against the selected company and its ledger masters before a file is exported or entries are sent to Tally. Unknown mappings and incomplete inputs remain review cases rather than silently becoming accounting assumptions.
Tally integration with a deliberate write boundary
The Tally client sends XML over HTTP and reads the resulting import counts and error messages. Reads can retry, but a direct import is deliberately not retried automatically: a delayed reply may mean Tally already accepted the vouchers. Duplicate preflights reduce repeat imports without claiming an atomic transaction across accountant PCs.
Financial arithmetic and reconciliation
Decimal-based calculations feed bank, rent and inter-company workflows. The loan engine compares counterparties across company books, identifies matched, mismatched, one-sided and missing-data cases, and checks aggregate positions against pair differences. These are explicit accounting rules with review output, not an LLM making financial decisions.
Human decisions stay scoped
Ledger mappings and transaction corrections are scoped to their relevant company and workflow. Optional maker-checker approval checks a second person through a salted PIN hash and prevents self-approval. Approval logging is implemented, but its current best-effort write behavior is not presented as a guaranteed immutable audit trail.
Desktop delivery and testable boundaries
PySide6 provides the review screens, while parsing, calculation and transport live in separate Python modules. The project includes a PyInstaller Windows build and regression tests using mocked Tally transport. Source review confirms these implementations; it does not establish that every workflow has passed live office acceptance.
Scope and access
This is an internal Kalash Group project. Company source code, financial records and account credentials are not published here. The architecture illustration is a diagram, not a screenshot of company data. Supported text-based statement and contract-note formats are parsed; general scanned-document OCR is not claimed.