equals-wd-card-expense-proc.../app
JasonFraser f89497b25d Add local generation of the Workday upload-ready EIB file
New "Generate EIB File (for Upload)" button, shown after a successful
process run, populates planeterra_equals_cards_transactions_eib_v45.xlsx
(the Workday EIB "Expense Credit Card Transaction" import template)
directly from that run's output, without a re-upload:

- app/tools/eib/logic.py: populate_upload_template() writes Header Key,
  Line Key, Transaction Number/Date, Amount, currencies, description and
  merchant name into the "Expense Credit Card Transaction" sheet, plus a
  per-file metadata row into "Credit Card Transaction Header" (Header
  Key, Credit Card Type, an auto-generated File Name covering the run's
  date range, and today's date). Corporate-card identifiers
  (AK/AM/AN) are resolved by reading eib_pre_template.xlsx's "Equals
  Card IDs" sheet at generation time rather than duplicating that
  mapping, so both output files always agree.
- app/tools/eib/routes.py: new /api/generate-upload route, backed by a
  small module-level "last processed output" holder (same single-user
  pattern as PROCESS_STATUS) so the button can reuse the prior run's
  data.
- templates/eib/index.html: the new button + status note in the result
  panel.
- .gitignore: exception for the new template, same as eib_pre_template.xlsx.

Also includes the user's own edit to eib_pre_template.xlsx (J:M formula
fill range manually extended from row 699 to row 2000).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 15:58:52 -04:00
..
tools Add local generation of the Workday upload-ready EIB file 2026-08-18 15:58:52 -04:00
main.py Restructure into a multi-tool platform with blueprints 2026-08-18 11:25:13 -04:00