Commit graph

3 commits

Author SHA1 Message Date
Adam Moussa
102999165f Add DynamoDB Streams real-time PO sync and hardcode Google Client ID
- New po-sync Lambda triggered by DynamoDB Streams on the external
  purchase-orders table for near-real-time upsert into ledgerflow-pos
- GET /pos skips blocking sync when streams are configured
- Hardcode GOOGLE_CLIENT_ID fallback in CDK stack so /auth/config
  and JWT verification work without env var

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 14:29:32 -04:00
Adam Moussa
2ed6cb1cb5 Add invoice edit/delete with EDI modification tracking
- PUT /invoices/:id now accepts lineItems, recalculates totals, and
  adjusts PO billed amounts when totals change
- Invoices edited after EDI submission get ediStatus "modified_after_send"
- DELETE relaxed from draft-only to any non-paid invoice
- Update README to reflect new endpoint behavior

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 11:40:37 -04:00
Adam Moussa
59127d5ab8 Initial commit — LedgerFlow backend
Lambda-based serverless backend with Google SSO, purchase orders,
invoices, and X12 810 EDI generation for Amazon Payee Central.
Includes bill-to/ship-to address support from Coupa purchase-orders table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 18:19:38 -04:00