Unbilled Invoice Report
Requires the Reporting module. It appears as Reporting in the left menu for Tenant Admins, Billing Admins, Sales Admins and users with the Reporting role.
Forecast your cash by reporting on invoices that haven't been created yet: every upcoming bill date, for every contract, across all your customers. Think of it as the Billing Schedule for your whole customer base at once.
The data lives in the contract_billing_schedule table in the Reporting module.
| I want to… | Go to |
|---|---|
| Understand what the table contains | What's in the report |
| Build the report | Build the report |
| Forecast cash by month | Forecast cash by month |
| Keep a history of forecasts | Best practice: save a monthly snapshot |
| Look up a column | Columns |
What's in the report
Explanation
- One row per contract per upcoming bill date, with the amount that will be invoiced on that date.
- Only invoices still to come. A row appears only if its bill date is on or after the bill group's next invoice date. Once an invoice is created, its row drops out.
- Bill groups with no next invoice date aren't included, for example when all their contracts have finished invoicing.
- Amounts come from the contract's latest quote. They include every product on the quote, so amendments and renewals are reflected.
- Usage isn't forecast. Usage is calculated when the invoice is created, so it isn't in these amounts, just as on the Billing Schedule.
- Each row has its contract's net terms and its bill group's currency, so you can work out when cash is due and total by currency.
The table contains IDs rather than names. To show account and bill group names, join it to the account and bill_group tables, as in the examples below.
Build the report
How-to
- Click Reporting in the left menu.
- Click + New, then SQL query.
- Choose your MonetizeNow database and paste this query:
-- Unbilled invoices for the next 12 months, with account and bill group names
SELECT
a.account_name AS account,
bg.name AS bill_group,
cbs.bill_date,
cbs.bill_date + CAST(SPLIT_PART(cbs.net_terms, '_', 2) AS integer) AS expected_due_date,
cbs.net_terms,
cbs.currency,
SUM(cbs.amount) AS amount
FROM contract_billing_schedule cbs
JOIN account a ON a.id = cbs.account_id
JOIN bill_group bg ON bg.id = cbs.bill_group_id
WHERE cbs.bill_date < CURRENT_DATE + INTERVAL '12 months'
GROUP BY a.account_name, bg.name, cbs.bill_date, cbs.net_terms, cbs.currency
ORDER BY cbs.bill_date, account;- Run the query, then click Save to keep it as a question you can reopen or share.
Example result:
| account | bill_group | bill_date | expected_due_date | net_terms | currency | amount |
|---|---|---|---|---|---|---|
| Bad Wolf Media | Bad Wolf Media - Vortex API | 2026-12-01 | 2026-12-31 | NET_30 | USD | 3,300.00 |
| UNIT Logistics | UNIT Logistics - Platform | 2027-02-05 | 2027-03-22 | NET_45 | USD | 24,500.00 |
| Torchwood Institute | Torchwood Institute - Platform | 2027-11-01 | 2027-12-16 | NET_45 | USD | 86,400.00 |
Prefer not to write SQL? Start a Question instead, choose the contract_billing_schedule table, and use Summarize to sum amount by bill_date and currency. You'll see account and bill group IDs rather than names.
Forecast cash by month
How-to
To see how much cash to expect each month, group by the expected due date (bill date plus net terms):
-- Expected cash from unbilled invoices, by month and currency
SELECT
DATE_TRUNC('month', cbs.bill_date + CAST(SPLIT_PART(cbs.net_terms, '_', 2) AS integer))::date AS expected_cash_month,
cbs.currency,
SUM(cbs.amount) AS amount
FROM contract_billing_schedule cbs
GROUP BY 1, 2
ORDER BY 1, 2;Visualize it as a bar chart to see when your cash is coming in. Always keep currency in the grouping; amounts in different currencies shouldn't be added together.
This is a forecast of invoices, not payments. It doesn't include usage, invoices you create by hand, or the timing of late payments.
Best practice: save a monthly snapshot
Explanation
The table always shows the current schedule. When an invoice is created, its row disappears, and amendments change future amounts. So the table can't tell you what you forecast last month.
To track how your forecast changes over time:
- run the report on the same day each month and download the results (CSV or Excel) to a shared Finance folder; or
- add the saved question to a dashboard and set up a monthly subscription that emails it to your Finance team, if subscriptions are available in your Reporting module.
Comparing snapshots month to month shows how renewals, amendments and churn are moving your forecast.
Columns
Reference. Table
contract_billing_schedule.
| Column | Meaning |
|---|---|
id | Unique ID of the row |
account_id | The account (join to account.id for account_name) |
account_custom_id | The account's Custom ID |
bill_group_id | The bill group (join to bill_group.id for name) |
contract_id | The contract |
quote_id | The contract's latest quote, which the amounts come from |
bill_date | The date the invoice will be created |
amount | The amount that will be invoiced on that date, excluding usage |
net_terms | The contract's net terms, for example NET_30. The number is days after the bill date. |
currency | The bill group's currency |
create_date, modify_date, created_by, updated_by | When and by whom the row was last calculated |
Related
Updated about 15 hours ago
