cycle_type and billing_cycle not acted on in statusService #40

Closed
opened 2026-05-16 15:24:01 -05:00 by null · 0 comments
Owner

Problem: resolveDueDate() only uses due_day and ignores cycle_type/cycle_day. getCycleRange() always returns the calendar month regardless of billing cycle. Quarterly/annual/biweekly cycle types are stored but have zero effect on tracker behavior.

Scope:

  • resolveDueDate(): respect cycle_type and cycle_day for biweekly (day-of-week), quarterly, and annual bills
  • getCycleRange(): return the correct cycle range for non-monthly bills
  • Tracker should skip bills whose cycle doesn't fall in the current month (quarterly bills only show in their assigned months)
  • Add tests for each cycle type

Files: services/statusService.js, routes/tracker.js, routes/bills.js

Estimated effort: 3-4 hours

Related: #38

**Problem:** `resolveDueDate()` only uses `due_day` and ignores `cycle_type`/`cycle_day`. `getCycleRange()` always returns the calendar month regardless of billing cycle. Quarterly/annual/biweekly cycle types are stored but have zero effect on tracker behavior. **Scope:** - `resolveDueDate()`: respect `cycle_type` and `cycle_day` for biweekly (day-of-week), quarterly, and annual bills - `getCycleRange()`: return the correct cycle range for non-monthly bills - Tracker should skip bills whose cycle doesn't fall in the current month (quarterly bills only show in their assigned months) - Add tests for each cycle type **Files:** `services/statusService.js`, `routes/tracker.js`, `routes/bills.js` **Estimated effort:** 3-4 hours Related: #38
null added the
backend
feature
priority:high
labels 2026-05-16 15:28:57 -05:00
null closed this issue 2026-05-31 12:31:12 -05:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/BillTracker#40
No description provided.