How lufelip3/autopreco-nfe works
AutoPreço NFe is a desktop tool for updating Bling product costs and prices from invoice XML and an exported inventory CSV. Its main workflow is to preview or link invoice items, match them to inventory products, calculate updated costs and prices, and export only changed rows for reimport. The graph preserves documented matching, variation, pricing, and stock features. The GUI source is listed in the tree but was not excerpted, so its internal wiring is shown only where documented; sampled logic confirms the GUI calls the business logic.
Main entry points: logica_nfe.py Product matching · processar_custos.pyw Desktop GUI
Components 17
User interface
- Desktop GUI
processar_custos.pyw - Invoice preview
processar_custos.pyw - Assorted-item links
processar_custos.pyw
Invoice processing
- Invoice XML
- XML parsing
logica_nfe.py - Cost calculation
logica_nfe.py - Price strategies
logica_nfe.py
Catalog updates
- Inventory CSV
- Product matching
logica_nfe.py - Parent variations
logica_nfe.py - Price threshold
logica_nfe.py - Stock update
logica_nfe.py - Stock risk alert
logica_nfe.py
Bling exchange
- Changed-item export
logica_nfe.py - Updated CSV
Other components
- User
- Bling ERP
Connections 22
- User → Desktop GUI: operates
README.md - Desktop GUI → XML parsing: calls logic
logica_nfe.py - User → Invoice preview: previews items
README.md - Invoice preview → Invoice XML: reads
README.md - User → Assorted-item links: sets links
README.md - Assorted-item links → Product matching: prioritizes links
logica_nfe.py - Invoice XML → XML parsing: provides data
README.md - XML parsing → Product matching: provides products
README.md - Inventory CSV → Product matching: provides catalog
README.md - Product matching → Cost calculation: supplies matched items
README.md - Cost calculation → Price strategies: supplies real cost
logica_nfe.py - Price strategies → Price threshold: proposes price
README.md - Price threshold → Desktop GUI: requests decision
README.md - Product matching → Parent variations: updates parent
README.md - Product matching → Stock update: adds quantity
logica_nfe.py - Price strategies → Stock risk alert: alerts on increase
README.md - Product matching → Changed-item export: selects changed items
README.md - Parent variations → Changed-item export: includes updated parents
README.md - Stock update → Changed-item export: includes changed rows
README.md - Changed-item export → Updated CSV: writes
README.md - Updated CSV → Bling ERP: reimported into
README.md - Inventory CSV → Desktop GUI: selected by user
README.md