Monthly Billing¶
Now you are familiar with the process. Try to apply it for building this feature.
What this feature builds¶
A daily Job Queue codeunit that automatically bills long-term rentals every 30 days:
- Filters open Blanket Orders where
Next Billing Date ≤ Today - Creates and releases the period Sales Order via codeunit 87
- Advances
Next Billing Dateby 30 days
Short-term rentals are billed entirely at return (handled by the Return wizard).
The loop¶
- Spec —
create-feature-spec - Implement —
Implement the feature spec.— agent runs build → test → fix autonomously - Test — create a booking with
Next Billing Datein the past, run the Job Queue, verify a new period Sales Order is created and the date advances - Docs —
generate-docs - Finalise —
finalise-feature, merge, replan