13. Invoice Generation

Chapter 13 of 24 · 20 min
EXERCISE

Implement invoice generation that handles proration for mid-month upgrades. Test with a tenant upgrading from the Starter (₦15,000/month) to Professional tier (₦45,000/month) on the 15th of a 31-day month. Verify the prorated amounts calculate correctly for both the downgrade credit and upgrade charge.