Try for freeTry free
Sales

CRM Document Templates: Contracts and Invoices in a Minute

Ivan Kancyr7 min read

The contract lives in Word, the client's details are copied from an email, the amount in words is typed by hand, the stamp is pasted in as an image — and every third document has a typo in the tax ID. In emyCRM, you build a template once, and from then on a document is generated from an invoice in a couple of clicks: company details, items, totals, signature and stamp are filled in automatically.

Contents
  1. How a template works
  2. Three ways to make a template
  3. Why everything starts with an invoice
  4. Number, signature and stamp
  5. Your country's company details and VAT
  6. Who can create templates and generate documents
  7. Where to start
contract.docx

Supply contract No. {Document.Number} dated {Date.Today}

Buyer: {Buyer.LegalName}, CUI {Buyer.TaxId}

ItemQtyAmount
{Item.Name}{Item.Quantity}{Item.Total}

Total: {Items.Total}

Director ____________{Seller.Stamp}
An example. The row with item tags repeats for every line of the invoice, while company details, the total, the signature and the stamp fill in by themselves.

How a template works

A template is an ordinary document with tokens in curly braces where the data would go. When it generates a document, the CRM replaces each token with a value from the invoice and the records linked to it. The full list of tokens is in the “Available tokens” block on the templates page: clicking a token copies it, and filters help you find the field you need.

TokenWhat gets filled in
{Invoice.Number}, {Invoice.IssuedDate}Invoice number and date
{Buyer.LegalName}, {Buyer.TaxId}Client's legal name and tax ID
{Seller.BankName}, {Seller.Account}Your bank and bank account
{Item.Name}, {Item.Quantity}, {Item.Total}A row of the items table — repeated for each line item
{Items.Total}, {Items.VatTotal}Total and VAT amount
{Invoice.AmountInWords}Amount in words
{Seller.Signature}, {Seller.Stamp}Signature and stamp images
{Document.Number}, {Date.Today}Document number and today's date

You also get fields from the company, contact, deal and owner, plus your own custom fields — their tokens appear in the list automatically.

Three ways to make a template

  1. Upload your own .docx. “Settings → Document templates” → “+ Upload a template.” A contract you already have will do: replace the data in it with tokens and upload the file.
  2. Build it in the browser. “+ Visual template” opens the editor: headings, lists, tables and the “⊞ Items” button — a table row that repeats for every line item on the invoice. You don't need Word.
  3. Turn a .docx into a visual template. The “Visually” button in the template's row opens the uploaded file in the editor, if it's easier to edit it in the browser.

An uploaded .docx can be edited without Word too: you change the text of paragraphs and table cells right in the window, with a live PDF preview with sample values next to it. Images and complex formatting are better changed in Word — download the template and upload it back with the “Replace the file” button.

Why everything starts with an invoice

In emyCRM, a document is generated from an invoice: it already has the client, their company details, the items, prices, discounts and VAT. That's why a supply contract, a work completion certificate and a specification are simply different templates on top of one invoice, not different sections of the CRM.

  1. In the deal, open the “Invoices” tab and create an invoice — it will be linked to the deal and the company.
  2. In the invoice card, open the “Documents” tab and click “Generate document.”
  3. Choose a template and a format — DOCX or PDF. If you or the client have several sets of company details, choose the one you need.
  4. Click “Preview” to check the document, then “Generate” — the file appears in the tab and in the invoice's activity feed.

The window remembers your last choice — template, company details, VAT and format — so the second and later documents go even faster. Need a PDF of a DOCX that's already been generated? The “PDF” button in the document list makes one without a new number. How invoices and payments themselves work is covered in our article on CRM invoices and proposals.

Number, signature and stamp

  • Document number {Document.Number} — the invoice number plus the document's sequence number within it: “42/2607/15-1”, “42/2607/15-2”. Numbers never repeat, and the invoice number format is set in “Settings → Money & deals.”
  • Signature and stamp — PNG or JPG images in “Settings → Requisites” → “My requisites,” in the “Signature and stamp” block. In the template, they're placed with a token or a placeholder image wherever you need them in the document.
  • Several legal entities — several sets of company details. You pick the one you need directly in the generation window, and a set you don't need can be switched off without deleting it.

Your country's company details and VAT

You can tag a template with a country — then the window suggests it based on the invoice currency: Romanian templates for lei, Ukrainian ones for hryvnias. Each country has its own company detail fields: in Romania, they're the CUI/CIF, Nr. Reg. Com., IBAN and SWIFT/BIC; in Ukraine, the IPN, EDRPOU code, IBAN and MFO. You set the VAT clause for each country yourself: “Always with VAT,” “Always without VAT” or “Choose when creating.”

Who can create templates and generate documents

Templates are created and edited by an employee with the “Manage document templates” permission — by default, that's the administrator. Anyone who can see the invoice can generate a document. The “Access” button in the template's row limits it to specific departments or employees: a contract for wholesale buyers is visible only to the wholesale sales reps. More on permissions in our article on CRM roles and permissions.

Where to start

  1. Fill in “My requisites” and upload your signature and stamp.
  2. Take the document you send most often and replace the data in it with tokens.
  3. Upload it as a template and generate a preview on any invoice.
  4. Once everything matches, add the other templates: completion certificate, specification, contract.
Can I upload my own contract template?
Yes. Replace the data in your .docx with tokens like {Buyer.LegalName} and upload the file in “Settings → Document templates.” You can also build a template in the editor right in your browser.
How does the items table get into the document?
A table row with {Item.*} tokens repeats for each line item on the invoice, and the totals and VAT are filled in with {Items.*} tokens.
Can I add a signature and stamp?
Yes: upload them as images in “My requisites” and put the {Seller.Signature} or {Seller.Stamp} token in the template.
What is a contract or completion certificate generated from?
From an invoice: it has the client, items and amounts. A contract, a completion certificate and a specification are different templates on top of one invoice.
What format does the document come in?
DOCX or PDF. You can check a preview before generating, and the finished file stays on the invoice card.

Build a template once — and documents are ready in a minute

14 days free on the “Standard” plan. No card required.

Start for free

Share this article

Ivan Kancyr

Founder of emyCRM. Writes about how small teams sell over the phone and in messengers without losing clients.

← All articles

Try 14 days free

14 days of the Standard plan: up to 30 employees, telephony and AI features. No card needed — try it on your own deals.

  • No card needed, cancel anytime
  • We’ll help you move clients and deals from another CRM or Excel
  • Your data stays after the trial

First steps

  1. Account createda couple of minutes, no card
  2. Connect telephonyyou only need a SIP provider
  3. Connect WhatsApp and Telegramapps in the marketplace
  4. Move clients and dealsfrom Excel or another CRM — we’ll help
  5. Invite your teamroles and access by department
1 of 5