# 1. Install dependencies
pip install -r requirements.txt
# 2. Run the app
python app.pyThen open http://localhost:5000 in your browser.
- Pick a report date (leave blank for today, or enter a past date to backfill).
- Upload your four Excel files — Salesperson, Customers List, BD, and Cash.
- Click Generate Report — a styled
.xlsxfile downloads automatically.
The app auto-detects file types by filename keywords:
| File | Must contain in filename |
|---|---|
| Salespersons | salesperson |
| Customers | customer |
| BD | BD |
| Cash | cash |
The generated Excel workbook contains:
- Collections Summary (Daily) — transactions on the selected date
- Collections Summary (MTD) — 1st of month → selected date
- Collections Summary (YTD) — 1st Jan → selected date
- Customers List, Salesperson, Cash, BD (raw enriched data)