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 containsWhat's in the report
Build the reportBuild the report
Forecast cash by monthForecast cash by month
Keep a history of forecastsBest practice: save a monthly snapshot
Look up a columnColumns

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

  1. Click Reporting in the left menu.
  2. Click + New, then SQL query.
  3. 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;
  1. Run the query, then click Save to keep it as a question you can reopen or share.

Example result:

accountbill_groupbill_dateexpected_due_datenet_termscurrencyamount
Bad Wolf MediaBad Wolf Media - Vortex API2026-12-012026-12-31NET_30USD3,300.00
UNIT LogisticsUNIT Logistics - Platform2027-02-052027-03-22NET_45USD24,500.00
Torchwood InstituteTorchwood Institute - Platform2027-11-012027-12-16NET_45USD86,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.

ColumnMeaning
idUnique ID of the row
account_idThe account (join to account.id for account_name)
account_custom_idThe account's Custom ID
bill_group_idThe bill group (join to bill_group.id for name)
contract_idThe contract
quote_idThe contract's latest quote, which the amounts come from
bill_dateThe date the invoice will be created
amountThe amount that will be invoiced on that date, excluding usage
net_termsThe contract's net terms, for example NET_30. The number is days after the bill date.
currencyThe bill group's currency
create_date, modify_date, created_by, updated_byWhen and by whom the row was last calculated

Related


Did this page help you?