{"id":159958,"date":"2026-11-25T10:37:59","date_gmt":"2026-11-25T10:37:59","guid":{"rendered":"https:\/\/docs.daftra.com\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/"},"modified":"2026-11-25T10:49:02","modified_gmt":"2026-11-25T10:49:02","slug":"adding-construction-variables-to-the-sales-invoice-printable-template-2","status":"publish","type":"tutorial","link":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/","title":{"rendered":"Adding Construction Variables to the Sales Invoice Printable Template"},"content":{"rendered":"<div dir=\"ltr\" lang=\"en\">\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">Invoices generated from a payment certificate can print contract, project and certificate details, for a ZATCA-compliant tax invoice that states the contractual reference. Construction fields were added to the <strong style=\"color:#111827;\">Add Other Fields<\/strong> list of the sales invoice template.<\/p>\n<div style=\"background:#f6f8fb;border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;margin:0 0 20px;font-size:15px;line-height:1.8;\">\n<div style=\"display:flex;gap:8px;padding:4px 0;\"><span style=\"min-width:120px;color:#6b7280;\">Required permissions<\/span><span style=\"color:#1f2430;\">Edit General Settings, with the <strong style=\"color:#111827;\">Construction<\/strong> app active.<\/span><\/div>\n<div style=\"display:flex;gap:8px;padding:4px 0;\"><span style=\"min-width:120px;color:#6b7280;\">How to get there<\/span><span style=\"color:#1f2430;\">Templates \u2192 <a style=\"color:#1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/invoice_layouts\/index\" target=\"_blank\" rel=\"noopener\"><strong style=\"color:#1a56db;\">Printable Templates<\/strong><\/a> \u2192 <strong style=\"color:#111827;\">Estimates &amp; Invoices<\/strong> \u2192 open the template<\/span><\/div>\n<\/div>\n<div style=\"border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;margin:0 0 20px;\">\n<p style=\"margin:0 0 6px;font-weight:700;color:#111827;\">Contents<\/p>\n<ol style=\"margin:0;padding-left:22px;\">\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#before\"><strong style=\"color:#1a56db;\">Before you start<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#steps\"><strong style=\"color:#1a56db;\">Add the variables<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#vars\"><strong style=\"color:#1a56db;\">Construction variables<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#no-cert\"><strong style=\"color:#1a56db;\">Invoices not linked to a certificate<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#faq\"><strong style=\"color:#1a56db;\">Frequently asked questions<\/strong><\/a><\/li>\n<\/ol>\n<\/div>\n<h2 id=\"before\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">Before you start<\/h2>\n<ul style=\"margin:0 0 16px;padding-left:26px;\">\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">The construction fields show in the list only when the <strong style=\"color:#111827;\">Construction<\/strong> app is active.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Values come from the linked payment certificate, so real data prints only on invoices generated from a certificate (<strong style=\"color:#111827;\">Invoice<\/strong> on an approved certificate).<\/li>\n<\/ul>\n<h2 id=\"steps\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">Add the variables<\/h2>\n<ol style=\"margin:0 0 16px;padding-left:26px;\">\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Open <a style=\"color:#1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/invoice_layouts\/index\" target=\"_blank\" rel=\"noopener\"><strong style=\"color:#1a56db;\">Printable Templates<\/strong><\/a> and choose <strong style=\"color:#111827;\">Estimates &amp; Invoices<\/strong>.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Open the template or create a new design.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Open the <strong style=\"color:#111827;\">Additional Fields<\/strong> tab and click <strong style=\"color:#111827;\">Add Other Fields<\/strong>; the construction fields are in the same list as the other fields, after <strong style=\"color:#111827;\">Retention<\/strong> and <strong style=\"color:#111827;\">Retention Percentage<\/strong>.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Insert the variables and <strong style=\"color:#111827;\">Save<\/strong>.<\/li>\n<\/ol>\n<h2 id=\"vars\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">Construction variables<\/h2>\n<table style=\"width:100%;border-collapse:collapse;margin:0 0 18px;\">\n<tr>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Variable<\/th>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Shows<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">Contract Number<\/strong><\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Number of the construction contract linked to the certificate.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">Contract Title<\/strong><\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">The contract title.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">Project Name<\/strong><\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">The construction project name.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">Payment Certificate Date<\/strong><\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Date of the certificate the invoice was generated from.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">Start Date (Payment Certificate)<\/strong><\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Start of the certificate period.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">End Date (Payment Certificate)<\/strong><\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">End of the certificate period.<\/td>\n<\/tr>\n<\/table>\n<h2 id=\"no-cert\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">Invoices not linked to a certificate<\/h2>\n<ul style=\"margin:0 0 16px;padding-left:26px;\">\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">These variables have no values on an invoice not generated from a certificate, so no construction data prints; the rows are hidden together with their labels, as is the row of any date left empty on the certificate.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Check how the template looks on an invoice not linked to a certificate before relying on it.<\/li>\n<\/ul>\n<h2 id=\"faq\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">Frequently asked questions<\/h2>\n<h3 style=\"font-size:18px;font-weight:700;color:#111827;margin:24px 0 10px;\">Why are the construction fields missing from the list?<\/h3>\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">The <strong style=\"color:#111827;\">Construction<\/strong> app is not active.<\/p>\n<h3 style=\"font-size:18px;font-weight:700;color:#111827;margin:24px 0 10px;\">Where do the values come from?<\/h3>\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">From the payment certificate linked to the invoice.<\/p>\n<h3 style=\"font-size:18px;font-weight:700;color:#111827;margin:24px 0 10px;\">Do the variables make the invoice ZATCA-compliant?<\/h3>\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">They add the contractual reference to the tax invoice; other ZATCA requirements stay as in the template.<\/p>\n<\/div>\n","protected":false},"author":17,"featured_media":0,"template":"","categories":[17195,2067],"tags":[32749,32759,32750,26098,32751,32762,32761,30860,32763,32754,32755,32753,4220,32752,32758,16115,32760,32756,4793,4740],"class_list":["post-159958","tutorial","type-tutorial","status-publish","hentry","category-payment-certificates","category-printable-templates","tag-add-construction-variables-to-sales-invoice-template","tag-construction-group-missing","tag-construction-variables","tag-contract-number","tag-contract-title","tag-do-variables-make-invoice-zatca-compliant","tag-edit-invoice-template-variables","tag-end-date","tag-estimates-invoices-2","tag-invoice-generated-from-payment-certificate","tag-invoices-not-linked-to-a-certificate","tag-payment-certificate-date","tag-printable-templates","tag-project-name","tag-sales-invoice-printable-template","tag-start-date","tag-where-do-variable-values-come-from","tag-zatca-compliant-tax-invoice-contractual-reference","tag---en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding Construction Variables to the Sales Invoice Printable Template - Daftra Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Construction Variables to the Sales Invoice Printable Template - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Invoices generated from a payment certificate can print contract, project and certificate details, for a ZATCA-compliant tax invoice that states the contractual reference. Construction fields were added to the Add Other Fields list of the sales invoice template. Required permissionsEdit General Settings, with the Construction app active. How to get thereTemplates \u2192 Printable Templates \u2192 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-25T10:49:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#organization\",\"name\":\"Daftra\",\"url\":\"https:\/\/docs.daftra.com\/en\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg\",\"contentUrl\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg\",\"caption\":\"Daftra\"},\"image\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\",\"url\":\"https:\/\/docs.daftra.com\/en\/\",\"name\":\"Daftra Knowledge Base\",\"description\":\"Daftra\",\"publisher\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.daftra.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/\",\"name\":\"Adding Construction Variables to the Sales Invoice Printable Template - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\"},\"datePublished\":\"2026-11-25T10:37:59+00:00\",\"dateModified\":\"2026-11-25T10:49:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding Construction Variables to the Sales Invoice Printable Template\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding Construction Variables to the Sales Invoice Printable Template - Daftra Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/","og_locale":"en_US","og_type":"article","og_title":"Adding Construction Variables to the Sales Invoice Printable Template - Daftra Knowledge Base","og_description":"Invoices generated from a payment certificate can print contract, project and certificate details, for a ZATCA-compliant tax invoice that states the contractual reference. Construction fields were added to the Add Other Fields list of the sales invoice template. Required permissionsEdit General Settings, with the Construction app active. How to get thereTemplates \u2192 Printable Templates \u2192 [&hellip;]","og_url":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2026-11-25T10:49:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/docs.daftra.com\/en\/#organization","name":"Daftra","url":"https:\/\/docs.daftra.com\/en\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/docs.daftra.com\/en\/#logo","inLanguage":"en-US","url":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg","contentUrl":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg","caption":"Daftra"},"image":{"@id":"https:\/\/docs.daftra.com\/en\/#logo"}},{"@type":"WebSite","@id":"https:\/\/docs.daftra.com\/en\/#website","url":"https:\/\/docs.daftra.com\/en\/","name":"Daftra Knowledge Base","description":"Daftra","publisher":{"@id":"https:\/\/docs.daftra.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.daftra.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/#webpage","url":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/","name":"Adding Construction Variables to the Sales Invoice Printable Template - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/en\/#website"},"datePublished":"2026-11-25T10:37:59+00:00","dateModified":"2026-11-25T10:49:02+00:00","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-construction-variables-to-the-sales-invoice-printable-template-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Adding Construction Variables to the Sales Invoice Printable Template"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/159958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/types\/tutorial"}],"author":[{"embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/users\/17"}],"version-history":[{"count":1,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/159958\/revisions"}],"predecessor-version":[{"id":159960,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/159958\/revisions\/159960"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=159958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=159958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=159958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}