**Not ready to merge tomorrow as is: three problems can lose a night's export without anyone noticing or leak customer emails.** The fixes are small (I'd estimate a couple of hours including tests), and the file's structure is clean and easy to fix. I reviewed by reading `export_job.py` only; I did not run it or open `test_export_job.py`, so test coverage comments rely on the module docstring.

## Blockers

1. **A failed export looks like a success to cron** (`export_job.py:56-57`). The `except Exception` logs one line and the process exits with code 0.
   - Example: the finance endpoint returns 503 at 02:00. Expected: non-zero exit and an alert. Actual: exit 0, one stderr line with no traceback, and finance has no file.
   - Fix: use `log.exception(...)` and re-raise, or `sys.exit(1)`.

2. **Customer emails are written to the logs** (`export_job.py:52`). The info line includes `[row[1] for row in rows]`, which is every customer email in the export.
   - Example: a day with 5,000 paid invoices puts 5,000 email addresses in one log line.
   - Fix: log the count and the day only.

3. **The upload has no timeout** (`export_job.py:42`). `requests.post` waits forever by default.
   - Example: the finance endpoint accepts the connection and stalls. The job hangs indefinitely, never logs a failure, and may still be running at the next night's 02:00 start.
   - Fix: `timeout=(10, 120)` or similar.

## Should fix before merge

4. **Logging is never configured.** There is no `basicConfig` or handler, so both `log.info` lines are dropped and only the error line reaches stderr, unformatted. A successful run leaves no trace.

5. **"Yesterday" depends on the server's and database session's timezone** (`export_job.py:47`, `:28`). `date.today()` uses the server's local time, and the date-to-`paid_at` comparison uses the session timezone.
   - Example: server on UTC, finance on US Eastern. An invoice paid at 21:00 Eastern on the 13th is stored as 02:00 UTC on the 14th and lands in the 14th's file.
   - Fix: build explicit timezone-aware boundaries in the business timezone.

6. **No way to re-run a missed day.** `run()` hardcodes yesterday, so recovering from a failed night means editing code. Take an optional date argument.

7. **Tests cover only the CSV header and one row.** Nothing tests the date window, upload failure, the exit code, a zero-invoice day, or a null field. Items 1, 3 and 5 each deserve a test.

8. **Amount formatting is inconsistent and assumes two decimal places** (`export_job.py:37`).
   - Example: 1000 cents is written as `10.0`, not `10.00`. A JPY invoice of 500 yen is written as `5.0`.
   - Fix: format with `Decimal` and a per-currency exponent, or export integer minor units and rename the column.

9. **`FINANCE_UPLOAD_URL` is read at import time** (`export_job.py:16`). Importing the module in a test without the variable set raises `KeyError`. Read it inside `upload()` or `run()`, as `DATABASE_URL` already is.

10. **No authentication is visible on the upload.** If the credential is embedded in the URL, that is fine but it will show up in error messages and tracebacks. If there is none, anyone who can reach the endpoint can post files.

## Minor

11. **Spreadsheet formula injection.** An email beginning with `=`, `+`, `-` or `@` is run as a formula if finance opens the CSV in Excel. Prefix such cells with `'`.
12. **Export files are never deleted.** `/var/exports` accumulates customer emails indefinitely, with default file permissions.
13. **A failed run leaves a partial or un-uploaded CSV** under the final filename. Write to a temporary name and rename on success.
14. **No retry on upload.** A single transient network error loses the night.
15. **`open()` has no `encoding`** (`export_job.py:33`). Under cron's minimal locale, a non-ASCII email could raise `UnicodeEncodeError`. Pass `encoding="utf-8"`.
16. **A null `amount_cents` or `paid_at` crashes the whole export** with a `TypeError` or `AttributeError`, which item 1 then hides.
17. **Connection errors are handled differently from everything else.** `psycopg2.connect` sits outside the `try`, so it produces a traceback and non-zero exit while later failures do not.
18. **Late or changed invoices are missed.** An invoice marked PAID after the run with a backdated `paid_at` is never exported. Confirm with finance whether this matters.
19. **Zero-invoice days upload a header-only file.** Probably fine, but confirm finance's endpoint expects it.
20. **`paid_at.isoformat()` carries no timezone offset** if the column is a naive timestamp, so finance cannot tell which zone it is.
21. **`EXPORT_DIR` is hardcoded** and not created if missing.
22. **`fetchall()` loads every row into memory.** Fine at current volume; a server-side cursor would be needed if it grows a lot.
23. **No guard against two overlapping runs**, which becomes relevant once item 3 is possible.
24. **No type hints or function docstrings.**

VERDICT: NOT READY
