How eloxbdeveloper/web-based-inventory-control-for-pharmacies works
Web Inventory Control is a browser-based pharmacy inventory reconciliation application. Its main workflow loads and parses an Excel inventory, prepares and renders product rows, updates physical counts from barcode scans, and exports the currently visible results. Filters support discrepancy review, alphabetical lookup, duplicate cleanup, and restoring the full view. The README describes manual Excel loading as an operational capability, but the sampled entry point demonstrates automatic loading of the bundled example. Filter internals are sampled; other wiring is shown only where the sampled bootstrap or README supports it.
Main entry points: Bootstrap.js Application setup · main.js Browser entry · exportExcel.js Excel export · excel.js Excel model
Components 15
Application entry
- Browser entry
Src/main.js - Application setup
Src/Services/Bootstrap.js - Control visibility
Src/UI/state.js
Inventory data
- Excel model
Src/Models/excel.js - Row collection
Src/Models/rowsCollection.js - Product row
Src/Models/row.js
Counting and review
- Inventory table
Src/UI/table.js - Barcode counting
Src/UI/scanner.js - Inventory filters
Src/UI/filters.js
Excel exchange
- Example inventory
Src/Multimedia/Example_Excel.xlsx - Excel reader
- Excel export
Src/Services/exportExcel.js - Excel writer
Other components
- Pharmacy staff
- Browser DOM
Connections 26
- Pharmacy staff → Browser entry: opens app
- Browser entry → Example inventory: fetches workbook
- Browser entry → Excel reader: parses workbook
- Excel reader → Browser entry: returns rows
- Browser entry → Application setup: initializes with rows
- Application setup → Excel model: creates model
- Application setup → Inventory table: renders inventory
- Application setup → Inventory filters: initializes filters
- Application setup → Barcode counting: initializes scanner
- Application setup → Control visibility: enables controls
- Application setup → Excel export: registers export action
- Excel model → Row collection: creates collection
- Row collection → Product row: wraps row data
- Inventory table → Excel model: reads inventory
- Inventory table → Browser DOM: renders table
- Pharmacy staff → Barcode counting: scans barcode
- Barcode counting → Browser DOM: updates count and difference
- Barcode counting → Inventory table: colors difference
- Pharmacy staff → Inventory filters: selects review filter
- Inventory filters → Browser DOM: filters table rows
- Inventory filters → Excel model: reads descriptions
- Pharmacy staff → Excel export: requests export
- Excel export → Browser DOM: reads visible rows
- Excel export → Excel model: reads headers
- Excel export → Excel writer: writes workbook
- Control visibility → Browser DOM: toggles controls