Recurring bill generation from cycle rules #38
Labels
No Label
architecture
backend
bug
feature
frontend
priority:critical
priority:high
priority:low
priority:medium
priority:nice-to-have
ux
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/BillTracker#38
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: Quarterly, annual, and biweekly cycle types are stored (
cycle_type,cycle_day,billing_cycle) but never acted on.resolveDueDate()only usesdue_day, andgetCycleRange()always returns the calendar month. No scheduled job creates tracker entries from these rules.Scope:
billing_cycle = quarterlyshould only appear in their assigned month (every 3rd month fromcycle_day)billing_cycle = annuallyshould only appear in their assigned monthcycle_type = biweeklyshould calculate correct due dates within the monthresolveDueDate()andgetCycleRange()must respectcycle_typeandcycle_dayImplementation notes:
services/statusService.js—resolveDueDate()andgetCycleRange()routes/tracker.jsor a newservices/scheduler.jsTrackerPage.jsxto show/hide bills based on their cycle eligibilityEstimated effort: 8-10 hours
Depends on: #8 (closed — recurring payment rules foundation)
Fixed in
1f1c505.getCycleRangenow called per-bill so quarterly/annual bills check their full window, not just the calendar month. Null-guard added afterbuildTrackerRow()prevents TypeError on cyclically-inactive bills.