No description
- Python 84.9%
- JavaScript 13.5%
- CSS 1.1%
- HTML 0.3%
- PowerShell 0.1%
| __pycache__ | ||
| api | ||
| audit_reports | ||
| connector | ||
| db | ||
| docs | ||
| frontend | ||
| importer | ||
| processor | ||
| scripts | ||
| tests | ||
| .dockerignore | ||
| = | ||
| _actionable_revenue_trace.json | ||
| _ambiguous_investigation.json | ||
| _audit_after_apply.json | ||
| _audit_after_td_payable_fix.json | ||
| _audit_before_apply.json | ||
| _audit_final.json | ||
| _auto_review.json | ||
| _count_vendor_audit.py | ||
| _dedup_candidate_test.py | ||
| _enrich_after.json | ||
| _enrich_apply.json | ||
| _enrich_dry.json | ||
| _final_exception_evidence.json | ||
| _hermes_408_428_invoice_sequence.json | ||
| _hermes_correction_plan.json | ||
| _hermes_indeterminate_group_repair_local.json | ||
| _hermes_overalloc_groups.json | ||
| _inspect_source_xlsx.py | ||
| _investigate_suggestions.py | ||
| _matcher_after_apply.txt | ||
| _matcher_after_tax.json | ||
| _matcher_apply_20.txt | ||
| _matcher_before_apply.txt | ||
| _matcher_final_apply.txt | ||
| _negative_408_broader.json | ||
| _negative_408_investigation.json | ||
| _post_apply_summary.py | ||
| _review_auto_matches.py | ||
| _schema_probe.py | ||
| _stellr_source.zip | ||
| _summarize_suggestions.py | ||
| _td_variance_trace.json | ||
| _td_variance_trace_corrected.json | ||
| _trace_mcmanus_invoices.py | ||
| _unmatched_after_apply.json | ||
| _unmatched_before_apply.json | ||
| _unmatched_final.json | ||
| app.py | ||
| billing.db | ||
| billing.db.backup-20260612-181033 | ||
| billing_config.json | ||
| deploy.md | ||
| deploy.ps1 | ||
| docker-compose.yml | ||
| Dockerfile | ||
| Dockerfile.api | ||
| Dockerfile.frontend | ||
| README.md | ||
| requirements.txt | ||
Billing Prep
Local billing preparation tool for TD SYNNEX software subscription reselling.
Run
cd C:\Dev\billing-prep
streamlit run app.py
First-time setup
- Import — Upload
my_invoices_detail.xlsxandSubscription Changes Report.xlsxon the Import page - Customers — Add each customer with their TD customer number, QB name, billing currency, and cycle day
- Product Pricing — Add a pricing line per customer per SKU (your customer-facing rate)
- Billing — Select customer + month, click Generate, review lines, approve, mark invoiced
Billing cycle day
1= 1st of month to last of month (e.g. McManus, VRS)15= 15th of month to 14th of next month (e.g. HermesNexTec)
Processor logic
Uses SubscriptionChangeEvent to reconstruct exact quantity-by-day within the
billing period. Proposes one line per quantity segment. Use the review step to
merge partial lines into a simplified full-month base where appropriate.
Files
billing.db SQLite database (created on first run, not committed to git)
db/schema.sql Table definitions
importer/
td_invoice.py TD Invoice Detail Excel → InvoiceLineRaw
sub_changes.py Subscription Changes Report → SubscriptionChangeEvent
processor/
billing.py Change events + pricing → CustomerBillingLine
app.py Streamlit UI