AI with Leantime
Turn timesheets into an invoice
- Plugin: MCP Server
- Cloud and self-hosted
- Checked with Leantime 3.17
At a glance
You need
- An AI assistant connected to Leantime
- The Company Manager role or higher (for the quick draft, Company Manager in that project is enough)
- Your rates and the client's details
Where you'll work
- Your AI assistant
- Leantime, under Company → All Timesheets, for the export and the Invoiced marks
At the end
An invoice for the billable time, and the time marked Invoiced in Leantime
Your AI assistant can turn the time your team logged in Leantime into an invoice: the billable hours per person or per to-do, your rates, and the client’s details, as a spreadsheet or a PDF. It shows you the lines and the total first, and makes the file once you agree. Then you mark the time as invoiced in Leantime, so it isn’t billed twice.
Which way should I use?
Section titled “Which way should I use?”| What | Quick draft | Exact lines |
|---|---|---|
| Where the hours come from | The assistant reads them from Leantime | A timesheet export you give the assistant |
| One line per | Person | To-do, with what was done |
| Leaves out time that’s already invoiced | No | Yes |
| Use it when | Nothing in the period has been invoiced yet | You invoice part of the time, or the client wants details |
Quick draft: ask your assistant
Section titled “Quick draft: ask your assistant”Make an invoice from my Leantime time for the project "Website Redesign",for time logged from 1 to 30 November 2026:- Only billable time (type "General, billable"). Look up each person separately, so their billable hours are exact.- One line per person: name, billable hours, rate, amount. Rates per hour: Ada 95, Ben 85, Chloe 80.- Bill to: Riverside Food Bank, 12 Main Street, Springfield.- From: [your company name and address].- Invoice number INV-2026-011, dated today, due in 30 days, in USD.Show me the lines and the total first. Once I say it's right,make it as a PDF.The assistant reads the project’s timesheets for each person, keeps the billable hours, and shows you something like this:
Invoice INV-2026-011: Website Redesign, November 2026
- Ada Lovelace: 7.0 hours × 95 = 665.00
- Ben Ortiz: 9.5 hours × 85 = 807.50
- Chloe Nguyen: 6.5 hours × 80 = 520.00
Total: 1,992.50 USD
The assistant can’t see which hours are already invoiced, so these totals include them. If you’ve invoiced part of the period, use the exact lines below.
Exact lines: from a timesheet export
Section titled “Exact lines: from a timesheet export”- Open Company → All Timesheets.
- Click Filter and choose the project, the dates, the type General, billable and Not invoiced.
- Click Export. Leantime downloads the list as a CSV file, one row per entry, with the to-do, the person, the type, the description and an Invoiced column.
- Give the file to your assistant with a request like this:
Here's my Leantime timesheet export (attached). Make an invoice from it:- Only entries for the project "Website Redesign", dated 1 to 30 November 2026, with Type "General, billable" and an empty Invoiced column (it shows the date an entry was invoiced).- One line per to-do: the to-do, total hours, rate, amount. Rate: 90 per hour. List the entries' descriptions under each line.- Bill to: Riverside Food Bank, 12 Main Street, Springfield.- From: [your company name and address].- Invoice number INV-2026-011, dated today, due in 30 days, in USD.Show me the lines and the total first, and list any entries youleft out and why. Once I say it's right, make it as a spreadsheet and a PDF.The filter already leaves out other projects, other dates, and time that’s invoiced or not billable. The request checks all of it again, in case you exported without the filter.
Mark the time as invoiced
Section titled “Mark the time as invoiced”Once the invoice is sent, mark the same entries in Leantime, so the next invoice leaves them out:
- In All Timesheets, use the same filter as for the export.
- Under the Invoiced column, tick Select all, at the bottom of the table.
- Compare the ticked entries with the invoice. Untick any entry that isn’t on it, such as time someone logged for the period after you exported. It stays open for the next invoice.
- Click Save. Each ticked entry’s checkbox is replaced by today’s date.

The assistant can’t mark time as invoiced for you. See How do I mark time as invoiced, approved or paid?
- Rates aren’t in Leantime. Put them in the request, per person or one for everyone.
- Billable means the type. Time logged as General, billable counts. If your team logs billable work under other types, like Development or Project Management, name those types in the request. For the exact lines, also choose All Types in the filter, because it takes one type at a time. The request then keeps only the types you named, and when you mark the time as invoiced, untick the entries of other types.
- Check the hours before you invoice. People sometimes log time late. Ask the assistant which to-dos finished in the period have no time logged (see Catch up on your timesheet).
- No file? Not every assistant can make a PDF or a spreadsheet. Ask for a table instead, and paste it into your invoicing tool.
- Use the same dates everywhere. The same dates in the request, the filter and the export keep the invoice and the Invoiced marks to the same time.
Related
Section titled “Related”Was this page helpful?
Thanks, glad it helped.
Thanks for telling us. What was missing?
