How nanthakumaran120/billing-software works
Srinivasa Billing is a desktop/web billing and invoice-management application. Staff log in, enter customer and product details, calculate taxes and totals, preview/print an invoice, and save it; they can then review, cancel, and export invoice reports. The React app uses an HTTP API backed by server-side persistence, while the Electron shell adds native printing and file dialogs. The README describes JSON data and report files; sampled server code also shows SQLite operations and JSON migration. Some routes and component behavior were not sampled, so only evidenced links are drawn.
Main entry points: App.jsx Application shell · api.js API client · PrintPreview.jsx Invoice preview · server.js Express API
Components 18
Billing interface
- Application shell
src/App.jsx - Login
src/components/Login.jsx - Customer entry
src/components/CustomerSection.jsx - Product entry
src/components/ProductTable.jsx - Tax summary
src/components/SummarySection.jsx - Invoice preview
src/components/PrintPreview.jsx - Print settings
src/components/PrintSettings.jsx
Invoice operations
- Invoice reports
src/components/ReportList.jsx - Bill cancellation
src/components/CancelBill.jsx
API and persistence
- API client
src/services/api.js - Express API
server.js - Billing database
data/billing.db - JSON records
data/customerdb.json - Invoice reports
data/invoices
Desktop printing
- Electron shell
electron/main.cjs - Native print handlers
electron/ipcPrint.cjs
Other components
- Billing staff
- System printers
Connections 26
- Billing staff → Application shell: uses
src/App.jsx - Application shell → Login: renders
src/App.jsx - Application shell → Customer entry: renders
src/App.jsx - Application shell → Product entry: renders
src/App.jsx - Application shell → Tax summary: renders
src/App.jsx - Application shell → Invoice preview: renders
src/App.jsx - Application shell → Invoice reports: renders
src/App.jsx - Application shell → Bill cancellation: renders
src/App.jsx - Customer entry → API client: loads and saves
src/components/CustomerSection.jsx - Product entry → API client: loads and saves
src/components/ProductTable.jsx - Application shell → API client: saves invoices
src/App.jsx - Application shell → API client: loads settings
src/App.jsx - Invoice reports → API client: loads and exports
src/components/ReportList.jsx - Bill cancellation → API client: cancels invoices
src/components/CancelBill.jsx - Invoice preview → Customer entry: renders
src/components/PrintPreview.jsx - Invoice preview → Product entry: renders
src/components/PrintPreview.jsx - Invoice preview → Tax summary: renders
src/components/PrintPreview.jsx - Invoice preview → Print settings: renders
src/components/PrintPreview.jsx - Invoice preview → API client: uploads PDF
src/components/PrintPreview.jsx - API client → Express API: requests routes
src/services/api.js - Express API → Billing database: reads and writes
server.js - Express API → JSON records: migrates records
server.js - Express API → Invoice reports: writes reports
server.js - Electron shell → Express API: starts process
electron/main.cjs - Electron shell → Native print handlers: registers handlers
electron/main.cjs - Native print handlers → System printers: queries and prints
electron/ipcPrint.cjs