Commit graph

6 commits

Author SHA1 Message Date
Adam Moussa
2c5a1b5a21
Merge pull request #2 from amoussa1229/feature/auto-sync-pos
Auto-sync POs via DynamoDB Streams + pagination
2026-04-03 14:30:48 -04:00
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
3854750597 Add PO auto-sync from external purchase-orders table
POs now auto-sync from the external DynamoDB purchase-orders table on
every GET /pos request, replacing manual import. Adds cursor-based
pagination support and SAM template for local development.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:58:15 -04:00
Adam Moussa
5efa6fc961
Merge pull request #1 from amoussa1229/feature/invoice-edit-delete
Add invoice edit/delete with EDI modification tracking
2026-04-03 11:44:53 -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