Service Invoice
A one-page invoice with a table letterhead, right-aligned billing details, a custom table style and a subtotal from a SUM(ABOVE) field.
A restoration studio's invoice. The letterhead and the billing block are borderless two-cell tables; the line items use a table style made with `table.newStyle` (an ink header row, banded rows and a tinted total row) and fixed column widths, with every figure right-aligned. The subtotal is a `=SUM(ABOVE)` formula field that the kit evaluates when it is inserted; VAT and the total are typed. The company registration line sits in the footer.
Steps
239 commandssteps:
# Proper names would otherwise carry spelling squiggles into the render.
- { command: review.proofing }
- { command: design.themeFonts, params: { heading: Bricolage Grotesque, body: Carlito } }
- { command: styles.modify, params: { style: Normal, chr: { size: 10.5 }, para: { spaceAfter: 0, lineSpacing: { rule: multiple, value: 1.1 } } } }
- { command: layout.margins, params: { top: 60, bottom: 60, left: 66, right: 66 } }
# Letterhead: a borderless two-cell table, studio on the left, the word INVOICE on the right.
- { command: insert.table, params: { rows: 1, cols: 2 }, as: head }
- { command: table.borders, params: { kind: none } }
- { command: format.set, params: { props: { font: Bricolage Grotesque, size: 20 } } }
- { command: format.color, params: { color: "2B2D42" } }
- { command: text.insert, params: { text: "Lumen & Lathe" } }
- { command: text.newParagraph }
- { command: format.set, params: { props: { font: Carlito, size: 9.5 } } }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: Furniture restoration and joinery } }
- { command: text.lineBreak }
- { command: text.insert, params: { text: "Unit 4, Coopers Yard, Fennick Street" } }
- { command: text.lineBreak }
- { command: text.insert, params: { text: "Wrexley WX2 5JD · 01632 960 552" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: format.set, params: { props: { font: Bricolage Grotesque, size: 30 } } }
- { command: format.color, params: { color: C8553D } }
- { command: format.spacing, params: { points: 2 } }
- { command: text.insert, params: { text: INVOICE } }
- { command: format.spacing, params: { points: 0 } }
- { command: caret.docEnd }
- { command: para.spacing, params: { before: 0, after: 0 } }
- { command: para.borders, params: { kind: bottom, width: 1.5, color: "2B2D42" } }
- { command: format.set, params: { props: { font: Carlito, size: 4 } } }
- { command: text.newParagraph }
- { command: para.borders, params: { kind: none } }
- { command: format.set, params: { props: { size: 10.5 } } }
- { command: format.color, params: { color: auto } }
- { command: para.spacing, params: { before: 14, after: 0 } }
# Billing block and invoice details.
- { command: insert.table, params: { rows: 1, cols: 2 }, as: meta }
- { command: table.borders, params: { kind: none } }
- { command: format.set, params: { props: { size: 8.5, bold: true } } }
- { command: format.color, params: { color: C8553D } }
- { command: format.spacing, params: { points: 1 } }
- { command: text.insert, params: { text: BILL TO } }
- { command: text.newParagraph }
- { command: format.set, params: { props: { size: 10.5, bold: true } } }
- { command: format.color, params: { color: "2B2D42" } }
- { command: format.spacing, params: { points: 0 } }
- { command: text.insert, params: { text: The Old Granary Guest House } }
- { command: text.newParagraph }
- { command: format.set, params: { props: { bold: false } } }
- { command: format.color, params: { color: auto } }
- { command: text.insert, params: { text: "Attn: Priya Calloway" } }
- { command: text.lineBreak }
- { command: text.insert, params: { text: "Mill Lane, Stoke Amberley" } }
- { command: text.lineBreak }
- { command: text.insert, params: { text: Wrexley WX9 3TR } }
- { command: text.tab }
- { command: para.alignRight }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Invoice no. " } }
- { command: format.color, params: { color: "2B2D42" } }
- { command: format.bold, params: { value: true } }
- { command: text.insert, params: { text: LL-2026-0418 } }
- { command: format.bold, params: { value: false } }
- { command: text.newParagraph }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Issue date " } }
- { command: format.color, params: { color: "2B2D42" } }
- { command: format.bold, params: { value: true } }
- { command: text.insert, params: { text: "9 November 2026" } }
- { command: format.bold, params: { value: false } }
- { command: text.newParagraph }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Due date " } }
- { command: format.color, params: { color: "2B2D42" } }
- { command: format.bold, params: { value: true } }
- { command: text.insert, params: { text: "9 December 2026" } }
- { command: format.bold, params: { value: false } }
- { command: text.newParagraph }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Order ref. " } }
- { command: format.color, params: { color: "2B2D42" } }
- { command: format.bold, params: { value: true } }
- { command: text.insert, params: { text: "Job 112, dining set" } }
- { command: format.bold, params: { value: false } }
- { command: caret.docEnd }
- { command: format.color, params: { color: auto } }
- { command: para.spacing, params: { before: 0, after: 10 } }
- { command: format.size, params: { size: 6 } }
- { command: text.newParagraph }
- { command: format.size, params: { size: 10.5 } }
# Line items: header row in ink, amounts right-aligned, subtotal from a SUM(ABOVE) field.
- { command: insert.table, params: { rows: 9, cols: 4 }, as: items }
- { command: table.newStyle, params: { name: Invoice Lines, wholeTable: { borders: false }, headerRow: { fill: "2B2D42", color: FFFFFF, bold: true, size: 9.5 }, bandedRows: { fill: F4F4F7 }, lastRow: { fill: F3E3DF, bold: true }, apply: true }, as: style }
- { command: table.look, params: { headerRow: true, bandedRows: true, totalRow: true, firstColumn: false } }
- { command: table.columnWidth, params: { width: 262 } }
- { command: text.tab }
- { command: table.columnWidth, params: { width: 40 } }
- { command: text.tab }
- { command: table.columnWidth, params: { width: 89 } }
- { command: text.tab }
- { command: table.columnWidth, params: { width: 89 } }
- { command: text.backTab }
- { command: text.backTab }
- { command: text.backTab }
- { command: format.set, params: { props: { bold: true, size: 9.5 } } }
- { command: format.color, params: { color: FFFFFF } }
- { command: text.insert, params: { text: Description } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: Qty } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "Unit price (£)" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "Amount (£)" } }
- { command: format.set, params: { props: { bold: false, size: 10.5 } } }
- { command: format.color, params: { color: auto } }
- { command: text.tab }
- { command: text.insert, params: { text: "Strip and refinish oak dining table (8-seat), hard-wax oil" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "1" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "295.00" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "295.00" } }
- { command: text.tab }
- { command: text.insert, params: { text: Re-glue and re-wedge chair joints } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "6" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "28.50" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "171.00" } }
- { command: text.tab }
- { command: text.insert, params: { text: "Replace drop-in seat pads, customer's wool fabric" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "6" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "32.00" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "192.00" } }
- { command: text.tab }
- { command: text.insert, params: { text: Colour-match and fill veneer chips to sideboard top } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "1" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "118.75" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "118.75" } }
- { command: text.tab }
- { command: text.insert, params: { text: "Collection and delivery, two-person crew" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "1" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "64.00" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "64.00" } }
- { command: text.tab }
- { command: text.tab }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: Subtotal } }
- { command: text.tab }
- { command: para.alignRight }
- { command: table.formula, params: { formula: "=SUM(ABOVE)" }, as: subtotal }
- { command: text.tab }
- { command: text.tab }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "VAT at 20%" } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "168.15" } }
- { command: text.tab }
- { command: text.tab }
- { command: text.tab }
- { command: para.alignRight }
- { command: format.bold, params: { value: true } }
- { command: text.insert, params: { text: Total due } }
- { command: text.tab }
- { command: para.alignRight }
- { command: text.insert, params: { text: "1,008.90" } }
- { command: table.cellMargins, params: { top: 6, bottom: 6, left: 6, right: 6 } }
- { command: table.properties, as: itemsTable }
- { command: caret.docEnd }
- { command: para.spacing, params: { before: 22, after: 4 } }
- { command: format.set, params: { props: { size: 8.5, bold: true } } }
- { command: format.color, params: { color: C8553D } }
- { command: format.spacing, params: { points: 1 } }
- { command: text.insert, params: { text: PAYMENT } }
- { command: text.newParagraph }
- { command: format.set, params: { props: { size: 10, bold: false } } }
- { command: format.color, params: { color: auto } }
- { command: format.spacing, params: { points: 0 } }
- { command: para.spacing, params: { before: 0, after: 3 } }
- { command: text.insert, params: { text: "Please pay within 30 days by bank transfer, quoting the invoice number. Restoration work is guaranteed for twelve months from delivery; fabric supplied by the customer is not covered." } }
- { command: text.newParagraph }
- { command: para.tabs, params: { tabs: [{ pos: 90 }] } }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Account name\t" } }
- { command: format.color, params: { color: auto } }
- { command: text.insert, params: { text: "Lumen & Lathe Ltd" } }
- { command: text.newParagraph }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Sort code\t" } }
- { command: format.color, params: { color: auto } }
- { command: text.insert, params: { text: "00-00-00" } }
- { command: text.newParagraph }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Account no.\t" } }
- { command: format.color, params: { color: auto } }
- { command: text.insert, params: { text: "0000 4418" } }
- { command: text.newParagraph }
- { command: para.tabs, params: { clearAll: true } }
- { command: para.spacing, params: { before: 26, after: 0 } }
- { command: para.alignCenter }
- { command: format.italic, params: { value: true } }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Thank you — it was a pleasure to bring the Granary's dining room back to life." } }
- { command: format.italic, params: { value: false } }
- { command: insert.footer, params: { text: "" } }
- { command: insert.editFooter }
- { command: para.alignCenter }
- { command: format.set, params: { props: { font: Carlito, size: 8.5, bold: false, italic: false } } }
- { command: format.color, params: { color: "6C7080" } }
- { command: text.insert, params: { text: "Lumen & Lathe Ltd · Registered in England and Wales No. 0000 9917 · VAT No. GB 000 4471 82" } }
- { command: insert.closeHeader }Checks
8 checks on every buildinspect.pages= {"count":1}inspect.words= {"min":160,"max":195}results.subtotal.result= "840.75"results.style.id= "InvoiceLines"results.itemsTable= {"style":"InvoiceLines","cellMargins":[6,6,6,6]}results.itemsTable.look= {"headerRow":true,"bandedRows":true,"totalRow":true}- Diagnostics: none, the kit's own check finds nothing wrong
- The saved document opens again, and its thumbnail matches
thumb.pngwithin the render tolerance
Related
More Doc samplesMutual NDA
A mutual non-disclosure agreement with numbered parties, lettered recitals, two-level clauses and side-by-side signature blocks.
Residential Lease Agreement
A two-page tenancy agreement with a particulars table, two-level legal clause numbering, defined terms and signature lines.
Equipment Hire Agreement
A stage-equipment hire agreement whose Article 1, Article 2 … headings are numbered by a list linked to the article-heading style, with party lines, lettered sub-items and a borderless signature block.
Club Registration Form
A one-page membership form with shaded section bands, underscore tab-leader blanks, tick boxes and an emergency-contact table.