Professional Money Transaction History and Hawala Receipt Management software designed for the document style of Balam Bar Baran International Transport. Includes advanced OCR receipt parsing (for both English and Persian/Dari texts) and automated ledger updates.
1405.01.25) to standard Gregorian dates, matches accounts with the database, and flags duplicate transactions.To run document OCR extraction, the backend depends on system-level OCR binaries. Install them based on your OS:
C:\Program Files\Tesseract-OCR).fas) script package during installation for enhanced text accuracy on Dari/Persian receipts.brew install tesseract tesseract-lang
sudo apt-get update
sudo apt-get install tesseract-ocr tesseract-ocr-fas
bin directory (containing pdftoppm.exe).bin path to your System Environment variables PATH.brew install poppler
sudo apt-get install poppler-utils
Install Python requirements and launch the FastAPI server:
# Navigate to the backend directory and install dependencies
cd backend
pip install -r requirements.txt
# Start the FastAPI application with Uvicorn
python -m uvicorn app.main:app --host 127.0.0.1 --port 8000 --reload
http://127.0.0.1:8000/healthhttp://127.0.0.1:8000/docsInstall Node modules and start the Vite development server:
# Navigate to the frontend directory and install dependencies
cd frontend
npm install
# Start Vite
npm run dev
http://127.0.0.1:5173Upon startup, the database is auto-seeded with the following users:
| Role | Username / Email | Password |
|---|---|---|
| Admin | admin@brb.com |
admin123 |
| Accountant | accountant@skybanking.local |
1234 |
POST /api/ocr/upload - Uploads a scanned receipt to temporary storage and returns attachment details.POST /api/ocr/extract - Processes the uploaded PDF or image, runs digit normalization and regex matching, searches for duplicate records, and returns structured fields.POST /api/ocr/save-transaction - Batch imports validated transactions, updates customer/bank balances, and links attachments.GET /api/transactions/{id}/attachment - Serves the uploaded PDF or image directly for inline previewing.