# yashn555/freeshop-billing architecture

> Architecture diagram of the GitHub repository yashn555/freeshop-billing, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yashn555/freeshop-billing
- Repository: https://github.com/yashn555/freeshop-billing

## Overview

FreeShop Billing is an offline-first Android invoicing app for small shops. A shop user registers or signs in, creates an invoice or quotation on the dashboard, and can save and view bills or generate a branded PDF; separate screens manage customers, products, and shop settings. The graph captures the documented capabilities and the sampled dashboard-to-data/PDF relationships. Several screen and ViewModel implementations were not sampled, so those connections are shown as unverified where needed.

Main entry points: [`app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt) (Navigation graph), [`app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt`](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt) (Billing logic), [`app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt`](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt) (Room database), [`app/src/main/java/com/freeshop/billing/pdf/BillPdfGenerator.kt`](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/pdf/BillPdfGenerator.kt) (PDF generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App navigation"]
  node_activity["App entry<br/>[MainActivity.kt]"]
  node_navigation["Navigation graph<br/>[AppNav.kt]"]
  node_auth["Sign in / register<br/>[AuthViewModel.kt]"]
  node_session["Session store<br/>[SessionStore.kt]"]
  node_landing["Welcome screen<br/>[LandingScreen.kt]"]
  node_login["Login screen<br/>[LoginScreen.kt]"]
  node_register["Registration screen<br/>[RegisterScreen.kt]"]
end

subgraph group_billing["Billing workflow"]
  node_dashboard["Invoice dashboard<br/>[DashboardScreen.kt]"]
  node_dashboardvm["Billing logic"]
  node_billhistory["Bills history<br/>[BillsScreen.kt]"]
  node_billsvm["Bills logic<br/>[BillsViewModel.kt]"]
  node_pdf["PDF generator"]
  node_money["Money utilities<br/>[Money.kt]"]
end

subgraph group_management["Shop management"]
  node_customers["Customer management<br/>[CustomersScreen.kt]"]
  node_customersvm["Customer logic"]
  node_products["Product catalog<br/>[ItemsScreen.kt]"]
  node_productsvm["Product logic<br/>[ItemsViewModel.kt]"]
  node_settings["Shop settings<br/>[SettingsScreen.kt]"]
  node_settingsvm["Settings logic"]
end

subgraph group_persistence["Local persistence"]
  node_database[("Room database<br/>[AppDatabase.kt]")]
  node_shoprepo["Shop repository<br/>[ShopRepository.kt]"]
  node_billrepo["Bill repository<br/>[BillRepository.kt]"]
  node_customerrepo["Customer repository"]
  node_productrepo["Product repository"]
  node_shopdao["Shop records<br/>[ShopDao.kt]"]
  node_billdao["Bill records<br/>[BillDao.kt]"]
  node_customerdao["Customer records<br/>[CustomerDao.kt]"]
  node_productdao["Product records<br/>[ProductDao.kt]"]
  node_shopentity["Shop profile<br/>[Shop.kt]"]
  node_billentity["Bill / quotation<br/>[Bill.kt]"]
  node_customerentity["Customer record<br/>[Customer.kt]"]
  node_productentity["Product record<br/>[Product.kt]"]
end

node_shopuser(("Shop user"))

node_shopuser -->|"opens app"| node_activity
node_activity -->|"starts navigation"| node_navigation
node_navigation -->|"routes to"| node_landing
node_navigation -->|"routes to"| node_login
node_navigation -->|"routes to"| node_register
node_navigation -->|"routes to"| node_dashboard
node_navigation -->|"routes to"| node_billhistory
node_navigation -->|"routes to"| node_customers
node_navigation -->|"routes to"| node_products
node_navigation -->|"routes to"| node_settings
node_navigation -->|"uses"| node_auth
node_navigation -->|"uses"| node_session
node_auth -->|"persists session"| node_session
node_auth -->|"authenticates shop"| node_shoprepo
node_dashboard -.->|"submits bill"| node_dashboardvm
node_dashboardvm -->|"saves bill"| node_billrepo
node_dashboardvm -->|"loads customers"| node_customerrepo
node_dashboardvm -->|"loads products"| node_productrepo
node_dashboardvm -->|"loads shop"| node_shoprepo
node_dashboardvm -->|"generates PDF"| node_pdf
node_billhistory -->|"queries history"| node_billsvm
node_billsvm -.->|"manages bills"| node_billrepo
node_customers -.->|"manages customers"| node_customersvm
node_customersvm -.->|"accesses customers"| node_customerrepo
node_products -.->|"manages catalog"| node_productsvm
node_productsvm -.->|"accesses products"| node_productrepo
node_settings -.->|"edits shop"| node_settingsvm
node_settingsvm -.->|"updates shop"| node_shoprepo
node_pdf -->|"renders bill"| node_billentity
node_pdf -->|"renders branding"| node_shopentity
node_pdf -->|"formats amounts"| node_money
node_dashboard -->|"shows totals"| node_money
node_database -->|"provides DAO"| node_shopdao
node_database -->|"provides DAO"| node_billdao
node_database -->|"provides DAO"| node_customerdao
node_database -->|"provides DAO"| node_productdao
node_shoprepo -->|"reads / writes"| node_shopdao
node_billrepo -->|"reads / writes"| node_billdao
node_customerrepo -->|"reads / writes"| node_customerdao
node_productrepo -->|"reads / writes"| node_productdao
node_shopdao -.->|"stores"| node_shopentity
node_billdao -->|"stores"| node_billentity
node_customerdao -->|"stores"| node_customerentity
node_productdao -->|"stores"| node_productentity

click node_activity "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/MainActivity.kt"
click node_navigation "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt"
click node_auth "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/AuthViewModel.kt"
click node_session "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/SessionStore.kt"
click node_landing "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/LandingScreen.kt"
click node_login "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/LoginScreen.kt"
click node_register "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/RegisterScreen.kt"
click node_dashboard "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/DashboardScreen.kt"
click node_dashboardvm "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt"
click node_billhistory "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/BillsScreen.kt"
click node_billsvm "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/BillsViewModel.kt"
click node_pdf "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/pdf/BillPdfGenerator.kt"
click node_money "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/domain/Money.kt"
click node_customers "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/CustomersScreen.kt"
click node_customersvm "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/CustomersViewModel.kt"
click node_products "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/ItemsScreen.kt"
click node_productsvm "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/ItemsViewModel.kt"
click node_settings "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/SettingsScreen.kt"
click node_settingsvm "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/SettingsViewModel.kt"
click node_database "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt"
click node_shoprepo "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/repository/ShopRepository.kt"
click node_billrepo "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/repository/BillRepository.kt"
click node_customerrepo "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/repository/CustomerRepository.kt"
click node_productrepo "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/repository/ProductRepository.kt"
click node_shopdao "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/dao/ShopDao.kt"
click node_billdao "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/dao/BillDao.kt"
click node_customerdao "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/dao/CustomerDao.kt"
click node_productdao "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/dao/ProductDao.kt"
click node_shopentity "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/entity/Shop.kt"
click node_billentity "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/entity/Bill.kt"
click node_customerentity "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/entity/Customer.kt"
click node_productentity "https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/entity/Product.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_activity,node_navigation,node_auth,node_session,node_landing,node_login,node_register,node_shopuser toneBlue
class node_dashboard,node_dashboardvm,node_billhistory,node_billsvm,node_pdf,node_money toneAmber
class node_customers,node_customersvm,node_products,node_productsvm,node_settings,node_settingsvm toneMint
class node_database,node_shoprepo,node_billrepo,node_customerrepo,node_productrepo,node_shopdao,node_billdao,node_customerdao,node_productdao,node_shopentity,node_billentity,node_customerentity,node_productentity toneRose
```

## Components

### App navigation

- [App entry](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/MainActivity.kt): `app/src/main/java/com/freeshop/billing/MainActivity.kt`
- [Navigation graph](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt): `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`
- [Sign in / register](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/AuthViewModel.kt): `app/src/main/java/com/freeshop/billing/ui/viewmodel/AuthViewModel.kt`
- [Session store](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/SessionStore.kt): `app/src/main/java/com/freeshop/billing/data/SessionStore.kt`
- [Welcome screen](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/LandingScreen.kt): `app/src/main/java/com/freeshop/billing/ui/screen/LandingScreen.kt`
- [Login screen](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/LoginScreen.kt): `app/src/main/java/com/freeshop/billing/ui/screen/LoginScreen.kt`
- [Registration screen](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/RegisterScreen.kt): `app/src/main/java/com/freeshop/billing/ui/screen/RegisterScreen.kt`

### Billing workflow

- [Invoice dashboard](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/DashboardScreen.kt): `app/src/main/java/com/freeshop/billing/ui/screen/DashboardScreen.kt`
- [Billing logic](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt): `app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt`
- [Bills history](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/BillsScreen.kt): `app/src/main/java/com/freeshop/billing/ui/screen/BillsScreen.kt`
- [Bills logic](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/BillsViewModel.kt): `app/src/main/java/com/freeshop/billing/ui/viewmodel/BillsViewModel.kt`
- [PDF generator](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/pdf/BillPdfGenerator.kt): `app/src/main/java/com/freeshop/billing/pdf/BillPdfGenerator.kt`
- [Money utilities](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/domain/Money.kt): `app/src/main/java/com/freeshop/billing/domain/Money.kt`

### Shop management

- [Customer management](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/CustomersScreen.kt): `app/src/main/java/com/freeshop/billing/ui/screen/CustomersScreen.kt`
- [Customer logic](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/CustomersViewModel.kt): `app/src/main/java/com/freeshop/billing/ui/viewmodel/CustomersViewModel.kt`
- [Product catalog](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/ItemsScreen.kt): `app/src/main/java/com/freeshop/billing/ui/screen/ItemsScreen.kt`
- [Product logic](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/ItemsViewModel.kt): `app/src/main/java/com/freeshop/billing/ui/viewmodel/ItemsViewModel.kt`
- [Shop settings](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/screen/SettingsScreen.kt): `app/src/main/java/com/freeshop/billing/ui/screen/SettingsScreen.kt`
- [Settings logic](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/ui/viewmodel/SettingsViewModel.kt): `app/src/main/java/com/freeshop/billing/ui/viewmodel/SettingsViewModel.kt`

### Local persistence

- [Room database](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt): `app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt`
- [Shop repository](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/repository/ShopRepository.kt): `app/src/main/java/com/freeshop/billing/data/repository/ShopRepository.kt`
- [Bill repository](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/repository/BillRepository.kt): `app/src/main/java/com/freeshop/billing/data/repository/BillRepository.kt`
- [Customer repository](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/repository/CustomerRepository.kt): `app/src/main/java/com/freeshop/billing/data/repository/CustomerRepository.kt`
- [Product repository](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/repository/ProductRepository.kt): `app/src/main/java/com/freeshop/billing/data/repository/ProductRepository.kt`
- [Shop records](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/dao/ShopDao.kt): `app/src/main/java/com/freeshop/billing/data/db/dao/ShopDao.kt`
- [Bill records](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/dao/BillDao.kt): `app/src/main/java/com/freeshop/billing/data/db/dao/BillDao.kt`
- [Customer records](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/dao/CustomerDao.kt): `app/src/main/java/com/freeshop/billing/data/db/dao/CustomerDao.kt`
- [Product records](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/dao/ProductDao.kt): `app/src/main/java/com/freeshop/billing/data/db/dao/ProductDao.kt`
- [Shop profile](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/entity/Shop.kt): `app/src/main/java/com/freeshop/billing/data/db/entity/Shop.kt`
- [Bill / quotation](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/entity/Bill.kt): `app/src/main/java/com/freeshop/billing/data/db/entity/Bill.kt`
- [Customer record](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/entity/Customer.kt): `app/src/main/java/com/freeshop/billing/data/db/entity/Customer.kt`
- [Product record](https://github.com/yashn555/freeshop-billing/blob/master/app/src/main/java/com/freeshop/billing/data/db/entity/Product.kt): `app/src/main/java/com/freeshop/billing/data/db/entity/Product.kt`

### Other components

- **Shop user**

## Connections

- Shop user → App entry: opens app
- App entry → Navigation graph: starts navigation (evidence: `app/src/main/java/com/freeshop/billing/MainActivity.kt`)
- Navigation graph → Welcome screen: routes to (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Login screen: routes to (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Registration screen: routes to (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Invoice dashboard: routes to (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Bills history: routes to (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Customer management: routes to (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Product catalog: routes to (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Shop settings: routes to (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Sign in / register: uses (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Navigation graph → Session store: uses (evidence: `app/src/main/java/com/freeshop/billing/ui/nav/AppNav.kt`)
- Sign in / register → Session store: persists session (evidence: `app/src/main/java/com/freeshop/billing/ui/viewmodel/AuthViewModel.kt`)
- Sign in / register → Shop repository: authenticates shop (evidence: `app/src/main/java/com/freeshop/billing/ui/viewmodel/AuthViewModel.kt`)
- Invoice dashboard → Billing logic: submits bill (evidence: `app/src/main/java/com/freeshop/billing/ui/screen/DashboardScreen.kt`)
- Billing logic → Bill repository: saves bill (evidence: `app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt`)
- Billing logic → Customer repository: loads customers (evidence: `app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt`)
- Billing logic → Product repository: loads products (evidence: `app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt`)
- Billing logic → Shop repository: loads shop (evidence: `app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt`)
- Billing logic → PDF generator: generates PDF (evidence: `app/src/main/java/com/freeshop/billing/ui/viewmodel/DashboardViewModel.kt`)
- Bills history → Bills logic: queries history (evidence: `app/src/main/java/com/freeshop/billing/ui/screen/BillsScreen.kt`)
- Bills logic → Bill repository: manages bills (evidence: `app/src/main/java/com/freeshop/billing/ui/viewmodel/BillsViewModel.kt`)
- Customer management → Customer logic: manages customers (evidence: `app/src/main/java/com/freeshop/billing/ui/screen/CustomersScreen.kt`)
- Customer logic → Customer repository: accesses customers
- Product catalog → Product logic: manages catalog (evidence: `app/src/main/java/com/freeshop/billing/ui/screen/ItemsScreen.kt`)
- Product logic → Product repository: accesses products
- Shop settings → Settings logic: edits shop (evidence: `app/src/main/java/com/freeshop/billing/ui/screen/SettingsScreen.kt`)
- Settings logic → Shop repository: updates shop
- PDF generator → Bill / quotation: renders bill (evidence: `app/src/main/java/com/freeshop/billing/pdf/BillPdfGenerator.kt`)
- PDF generator → Shop profile: renders branding (evidence: `app/src/main/java/com/freeshop/billing/pdf/BillPdfGenerator.kt`)
- PDF generator → Money utilities: formats amounts (evidence: `app/src/main/java/com/freeshop/billing/pdf/BillPdfGenerator.kt`)
- Invoice dashboard → Money utilities: shows totals (evidence: `app/src/main/java/com/freeshop/billing/ui/screen/DashboardScreen.kt`)
- Room database → Shop records: provides DAO (evidence: `app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt`)
- Room database → Bill records: provides DAO (evidence: `app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt`)
- Room database → Customer records: provides DAO (evidence: `app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt`)
- Room database → Product records: provides DAO (evidence: `app/src/main/java/com/freeshop/billing/data/db/AppDatabase.kt`)
- Shop repository → Shop records: reads / writes (evidence: `app/src/main/java/com/freeshop/billing/data/repository/ShopRepository.kt`)
- Bill repository → Bill records: reads / writes (evidence: `app/src/main/java/com/freeshop/billing/data/repository/BillRepository.kt`)
- Customer repository → Customer records: reads / writes (evidence: `app/src/main/java/com/freeshop/billing/data/repository/CustomerRepository.kt`)
- Product repository → Product records: reads / writes (evidence: `app/src/main/java/com/freeshop/billing/data/repository/ProductRepository.kt`)
- Shop records → Shop profile: stores (evidence: `app/src/main/java/com/freeshop/billing/data/db/dao/ShopDao.kt`)
- Bill records → Bill / quotation: stores (evidence: `app/src/main/java/com/freeshop/billing/data/db/dao/BillDao.kt`)
- Customer records → Customer record: stores (evidence: `app/src/main/java/com/freeshop/billing/data/db/dao/CustomerDao.kt`)
- Product records → Product record: stores (evidence: `app/src/main/java/com/freeshop/billing/data/db/dao/ProductDao.kt`)
