Skip to content

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 Date by 30 days

Short-term rentals are billed entirely at return (handled by the Return wizard).

The loop

  1. Speccreate-feature-spec
  2. ImplementImplement the feature spec. — agent runs build → test → fix autonomously
  3. Test — create a booking with Next Billing Date in the past, run the Job Queue, verify a new period Sales Order is created and the date advances
  4. Docsgenerate-docs
  5. Finalisefinalise-feature, merge, replan

Replan → · Next feature → Return Wizard & Deposit