How delkatonne/hitna-gestion works
HITNA Gestion is a web-based shop and inventory management system. Its main workflow is staff recording sales or stock movements, with Flask routes applying the operation to the database; administrators then manage products, purchasing, customers, and business reporting. It also supports offline use: browser actions queue in IndexedDB and are submitted to the server when connectivity returns. The broad admin feature map is grounded in the template tree and the sampled modules; individual unsampled route relationships are not inferred.
Main entry points: app.py Flask routes · ajouts.py Added features · offline-sync.js Offline sync · db.js Local action queue
Components 20
Web application
- Flask routes
app.py - Added features
ajouts.py - Pages and forms
templates - Business records
app.py
Shop operations
- Sales and stock
app.py - Purchasing and arrivals
ajouts.py - Reservations
app.py - Customer records
app.py - Customer credits
ajouts.py
Administration
- Business planning
ajouts.py - Product and supplier admin
templates - Finance and reporting
templates - Staff and permissions
templates
Offline support
- Browser
- Offline sync
static/offline-sync.js - Local action queue
static/db.js - API cache
static/offline-cache.js - Page and asset cache
sw.js
Other components
- Shop staff
- Administrator
Connections 22
- Shop staff → Flask routes: submits actions
app.py - Administrator → Flask routes: uses admin routes
app.py - Flask routes → Pages and forms: renders pages
app.py - Flask routes → Business records: queries and updates
app.py - Added features → Business records: queries and updates
ajouts.py - Flask routes → Sales and stock: handles operations
app.py - Flask routes → Reservations: handles reservations
app.py - Flask routes → Customer records: serves customer records
app.py - Added features → Purchasing and arrivals: handles arrivals
ajouts.py - Added features → Sales and stock: records stock receipt
ajouts.py - Added features → Customer credits: handles credits
ajouts.py - Added features → Business planning: handles planning
ajouts.py - Administrator → Product and supplier admin: manages catalog
- Administrator → Finance and reporting: reviews reports
- Administrator → Staff and permissions: manages staff
- Browser → Offline sync: runs client code
static/offline-sync.js - Offline sync → Local action queue: queues and reads actions
static/offline-sync.js - Offline sync → Flask routes: posts queued actions
static/offline-sync.js - Offline sync → Flask routes: refreshes products
static/offline-sync.js - Offline sync → Local action queue: stores product cache
static/offline-sync.js - Browser → API cache: intercepts API reads
static/offline-cache.js - Browser → Page and asset cache: intercepts GET requests
sw.js