How mierxan/field-survey-report works
This is a Windows desktop cargo-inspection and warehouse-monitoring application. The main workflow is to sign in, create or open an inspection report, save it as the authoritative record, then derive receiving/withdrawal transactions, inventory, dashboards, and exports from saved reports. Separate branches cover report imports and warehouse reconciliation. The index and excerpts establish several internal links; README statements support the documented product workflows and capabilities. Some UI and storage wiring is unsampled, so those links are omitted rather than inferred.
Main entry points: field_survey_report.py Inspection application · pages.py Monitoring pages · fsr_store.py Report store interface · store.py Warehouse data access
Components 23
Desktop application
- Application entry
main.py - Inspection application
field_survey_report.py - Local accounts
app_auth.py
Inspection reports
- Report forms
fsr_forms.py - Report import and review
fsr_import.py - Draft reports
fsr_drafts.py - Report handover
fsr_handover.py
Report persistence
- Report store interface
fsr_store.py - Local reports database
fsr_sqlite_store.py - Workbook data layer
fsr_storage.py - Optional MySQL sync
db_mysql.py - Save recovery journal
fsr_save_journal.py
Warehouse analytics
- Warehouse data access
warehouse/store.py - Transaction mapping
warehouse/transactions.py - Inventory and reconciliation
warehouse/inventory.py - Warehouse analytics
warehouse/analytics.py - Shared report tables
warehouse/tables.py
Warehouse screens and reports
- Warehouse UI shell
warehouse_ui/shell.py - Monitoring pages
warehouse_ui/pages.py - Reusable UI components
warehouse_ui/components.py - Excel and PDF reports
warehouse/exports.py - Warehouse settings
warehouse_ui/settings_page.py
Other components
- Inspector or owner
Connections 28
- Inspector or owner → Application entry: starts
- Application entry → Inspection application: opens
- Inspection application → Local accounts: authenticates with
field_survey_report.py - Inspection application → Report forms: uses forms
field_survey_report.py - Inspection application → Report store interface: saves reports through
field_survey_report.py - Inspection application → Report import and review: imports reports
field_survey_report.py - Inspection application → Report handover: manages handover
field_survey_report.py - Inspection application → Draft reports: manages drafts
- Report import and review → Report store interface: writes imported reports
fsr_import.py - Report store interface → Local reports database: delegates to
fsr_store.py - Local reports database → Workbook data layer: uses report layouts
fsr_sqlite_store.py - Report store interface → Workbook data layer: supports workbook storage
fsr_store.py - Report store interface → Save recovery journal: coordinates recoverable saves
fsr_store.py - Inspection application → Optional MySQL sync: syncs optionally
field_survey_report.py - Warehouse UI shell → Monitoring pages: hosts screens
- Monitoring pages → Reusable UI components: uses components
warehouse_ui/pages.py - Monitoring pages → Warehouse data access: loads warehouse data
warehouse_ui/pages.py - Warehouse data access → Transaction mapping: maps saved reports
warehouse/store.py - Transaction mapping → Workbook data layer: reads report fields
warehouse/transactions.py - Warehouse data access → Inventory and reconciliation: builds inventory
warehouse/store.py - Monitoring pages → Inventory and reconciliation: shows inventory
warehouse_ui/warehouse_page.py - Monitoring pages → Warehouse analytics: requests summaries
warehouse_ui/pages.py - Warehouse analytics → Transaction mapping: aggregates transactions
warehouse/analytics.py - Warehouse analytics → Inventory and reconciliation: summarizes balances
warehouse/analytics.py - Monitoring pages → Shared report tables: builds table rows
warehouse_ui/pages.py - Monitoring pages → Excel and PDF reports: exports reports
warehouse_ui/pages.py - Warehouse settings → Warehouse data access: configures warehouse data
warehouse_ui/settings_page.py - Inspector or owner → Warehouse UI shell: opens monitoring