Monthly Billing¶
Now you are familiar with the process. Try to apply it for building this feature.
What this feature builds¶
- Pickup wizard update — if the rental is longer than 30 days, set a "bill next on" date 30 days from pickup. Short rentals skip this — they are billed in full at return.
- Prolong update — if a customer extends a short rental so it now exceeds 30 days, set the "bill next on" date at that moment.
- Daily Job Queue — runs every day, finds all active rentals where the "bill next on" date has passed, raises the next 30-day invoice, and moves the date forward another 30 days.
Start the new chat and follow the process below.
The loop¶
- Spec — use the
create-feature-specskill - Implement —
Implement the feature spec.— agent runs build → test → fix autonomously - Test — verify three scenarios:
- Short rental (≤ 30 days) at pickup →
Next Billing Datestays blank - Prolong that rental past 30 days →
Next Billing Dateis now set - Booking with
Next Billing Datein the past → Job Queue creates a new period Sales Order and advances the date
- Short rental (≤ 30 days) at pickup →
- Docs — use the
generate-docsskill - Finalise —
finalise-feature, merge, replan