Invoice

Turn a JSON spec into a clean, print-ready HTML invoice with line totals, subtotal, optional tax, and grand total.

metadist 9c9c80d 2 files · 7.0 KB Updated

File contents

invoice

Create a professional, print-ready invoice as one self-contained HTML file (open it and print to PDF from the browser).

How to run

  1. First write the invoice spec as JSON into the out-box with the Write tool (e.g. invoice.json):
{
  "number": "INV-1001",
  "date": "2026-09-01",
  "from": "Acme GmbH\nBerlin",
  "to": "Client Ltd\nLondon",
  "currency": "EUR",
  "tax_rate": 19,
  "notes": "Payment within 14 days.",
  "items": [
    { "description": "Consulting", "quantity": 3, "price": 150 },
    { "description": "Hosting", "quantity": 1, "price": 40 }
  ]
}
  1. Then render it:
python3 <skill_dir>/run.py <spec.json> <output.html>
  • currencyEUR, USD, GBP, CHF, JPY, or any symbol/text.
  • tax_rate — a percentage (e.g. 19) or a fraction (e.g. 0.19); omit for none.

Standard library only. After running, tell the user the saved path.

metadist/synaplan-desktop/tree/main/skills/bundled/invoice commit 9c9c80d464

Frequently asked questions

npx skillmds@latest add metadist/invoice