Implement distributed expense daily processing #26

Open
opened 2026-10-30 21:01:26 -06:00 by west · 0 comments
Owner

📋 Daily processing of active distributed expenses — decrement the waterline each day.

🎯 Acceptance Criteria:

  • Each day, compute total distributed expense decrements for that day
  • Subtract each active distributed expense dailyAmount from waterline
  • Track which days have been processed (use SyncOutbox or a processed_days table)
  • Handle edge case: user adds a distributed expense mid-distribution
  • Handle edge case: user modifies a distributed expense (recalculate remaining)
  • Mark expense as complete when all days processed
  • Unit tested

📝 Notes: This runs as part of the daily waterline calculation. Consider: should processing happen at midnight or on-demand when the app opens?

📋 **Daily processing of active distributed expenses — decrement the waterline each day.** 🎯 **Acceptance Criteria:** - [ ] Each day, compute total distributed expense decrements for that day - [ ] Subtract each active distributed expense dailyAmount from waterline - [ ] Track which days have been processed (use SyncOutbox or a processed_days table) - [ ] Handle edge case: user adds a distributed expense mid-distribution - [ ] Handle edge case: user modifies a distributed expense (recalculate remaining) - [ ] Mark expense as complete when all days processed - [ ] Unit tested 📝 **Notes:** This runs as part of the daily waterline calculation. Consider: should processing happen at midnight or on-demand when the app opens?
Sign in to join this conversation.
No description provided.