How laptop-iq/food-bills works
This is a React receipt, invoice, and expense-form application, not a library. The main workflow is to enter and style a thermal restaurant bill, preview the receipt, then save or review bills; separate routes provide food bills, hotel expenses, invoices, and payment-provider receipt designs. The graph reflects imports and calls visible in the excerpts or SOURCE INDEX. Several page capabilities are represented by their source files, but their internal behavior was not sampled.
Main entry points: App.jsx Route selection · ThermalBill.jsx Thermal bill workflow · FoodBill.jsx Food bill editor · SFDyesExpenseForm.jsx Expense form
Components 29
Application shell
- Route selection
src/App.jsx - Shared layout
src/components/Layout.jsx
Thermal billing
- Thermal bill workflow
src/sections/ThermalBill.jsx - Bill editor
src/components/BillEditorView.jsx - Receipt preview
src/components/BillPreviewView.jsx - Receipt rendering
src/components/BillReceipt.jsx - Text styling
src/components/TextStyleControls.jsx - Saved bill browser
src/components/SavedBillsListView.jsx - Bill templates
src/components/BillTemplateManager.jsx - Billing state storage
src/components/api/api.js - Billing dashboard
src/pages/BillDashboard.jsx - Receipt defaults and styles
src/layout/constants.js - Feedback dialogs
src/components/FeedbackUI.jsx
Food billing
- Food bill editor
src/components/Foods/FoodBill.jsx - Bill toolbar
src/components/Foods/FoodBillToolbar.jsx - Receipt header
src/components/Foods/ReceiptHeader.jsx - Saved food bills
src/components/Foods/SavedBillsList.jsx - Food bill storage
src/components/Foods/savedBillsStorage.js
Hotel expenses
- Expense form
src/components/Hotels/SFDyesExpenseForm.jsx - Expense row definitions
src/components/Hotels/expenseRows.js - Amount utilities
src/components/Hotels/numberUtils.js - Print document generation
src/components/Hotels/printTemplate.js - Expense record storage
src/components/Hotels/recordsApi.js
Invoices and receipts
- Tax invoice
src/pages/TaxInvoice.jsx - Hotel invoice
src/pages/Hotels.jsx - Agoda receipt
src/pages/AgodaReceiptOriginal.jsx - PhonePe receipt
src/pages/PhonePe.jsx - GPay receipt
src/pages/Gpay.jsx
Other components
- User
Connections 36
- User → Route selection: selects route
src/App.jsx - Route selection → Shared layout: renders routes
src/App.jsx - Route selection → Thermal bill workflow: routes to
src/App.jsx - Route selection → Expense form: routes to
src/App.jsx - Route selection → Food bill editor: routes to
src/App.jsx - Route selection → Tax invoice: routes to
src/App.jsx - Route selection → Hotel invoice: routes to
src/App.jsx - Route selection → Agoda receipt: routes to
src/App.jsx - Route selection → PhonePe receipt: routes to
src/App.jsx - Route selection → GPay receipt: routes to
src/App.jsx - Route selection → Billing dashboard: routes to
src/App.jsx - Shared layout → Route selection: hosts outlet
src/components/Layout.jsx - Thermal bill workflow → Bill editor: renders
src/sections/ThermalBill.jsx - Thermal bill workflow → Receipt preview: renders
src/sections/ThermalBill.jsx - Thermal bill workflow → Saved bill browser: renders
src/sections/ThermalBill.jsx - Thermal bill workflow → Bill templates: opens manager
src/sections/ThermalBill.jsx - Thermal bill workflow → Billing state storage: loads and saves
src/sections/ThermalBill.jsx - Thermal bill workflow → Billing dashboard: opens dashboard
src/sections/ThermalBill.jsx - Thermal bill workflow → Feedback dialogs: renders dialogs
src/sections/ThermalBill.jsx - Thermal bill workflow → Receipt defaults and styles: uses defaults
src/sections/ThermalBill.jsx - Bill editor → Text styling: renders controls
src/components/BillEditorView.jsx - Bill editor → Receipt preview: renders panel
src/components/BillEditorView.jsx - Receipt preview → Receipt rendering: renders receipt
src/components/BillPreviewView.jsx - Receipt preview → Text styling: renders controls
src/components/BillPreviewView.jsx - Receipt rendering → Receipt defaults and styles: uses text styles
src/components/BillReceipt.jsx - Billing dashboard → Billing state storage: loads saved bills
src/pages/BillDashboard.jsx - Bill templates → Thermal bill workflow: returns selection
src/sections/ThermalBill.jsx - Food bill editor → Bill toolbar: renders toolbar
src/components/Foods/FoodBill.jsx - Food bill editor → Receipt header: renders header
src/components/Foods/FoodBill.jsx - Food bill editor → Saved food bills: renders saved list
src/components/Foods/FoodBill.jsx - Food bill editor → Food bill storage: uses bill storage
src/components/Foods/FoodBill.jsx - Saved food bills → Food bill storage: reads and updates
src/components/Foods/SavedBillsList.jsx - Expense form → Expense row definitions: uses row definitions
src/components/Hotels/SFDyesExpenseForm.jsx - Expense form → Amount utilities: calculates amounts
src/components/Hotels/SFDyesExpenseForm.jsx - Expense form → Print document generation: generates print HTML
src/components/Hotels/SFDyesExpenseForm.jsx - Expense form → Expense record storage: loads and saves
src/components/Hotels/SFDyesExpenseForm.jsx