Implement DistributedTransaction repository #14

Open
opened 2026-10-30 20:57:44 -06:00 by west · 0 comments
Owner

📋 CRUD and query operations for distributed expenses using GRDB.

🎯 Acceptance Criteria:

  • create(totalAmount, dailyAmount, startDate, endDate, sourceId?, description) auto-calculates dailyAmount
  • update(distributedTransaction) appends to SyncOutbox
  • delete(id) appends delete action to SyncOutbox
  • markDayProcessed(date) marks a specific day as processed
  • calculateRemainingBalance(id) returns remaining amount
  • queryActive() returns all active (in-progress) distributed expenses

📝 Notes: dailyAmount = totalAmount / numDays on creation.

📋 **CRUD and query operations for distributed expenses using GRDB.** 🎯 **Acceptance Criteria:** - [ ] create(totalAmount, dailyAmount, startDate, endDate, sourceId?, description) auto-calculates dailyAmount - [ ] update(distributedTransaction) appends to SyncOutbox - [ ] delete(id) appends delete action to SyncOutbox - [ ] markDayProcessed(date) marks a specific day as processed - [ ] calculateRemainingBalance(id) returns remaining amount - [ ] queryActive() returns all active (in-progress) distributed expenses 📝 **Notes:** dailyAmount = totalAmount / numDays on creation.
Sign in to join this conversation.
No description provided.