{"id":158452,"date":"2026-11-08T10:13:47","date_gmt":"2026-11-08T10:13:47","guid":{"rendered":"https:\/\/docs.daftra.com\/tutorial\/%d8%a7%d9%84%d8%aa%d8%b9%d8%a8%d8%a6%d8%a9-%d8%a7%d9%84%d8%aa%d9%84%d9%82%d8%a7%d8%a6%d9%8a%d8%a9-%d9%84%d9%85%d8%b1%d8%a7%d9%83%d8%b2-%d8%a7%d9%84%d8%aa%d9%83%d9%84%d9%81%d8%a9-%d9%81%d9%8a-%d9%81\/"},"modified":"2026-11-15T13:50:06","modified_gmt":"2026-11-15T13:50:06","slug":"automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract","status":"publish","type":"tutorial","link":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/","title":{"rendered":"Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract"},"content":{"rendered":"<div dir=\"ltr\" lang=\"en\">\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">When you create a <strong style=\"color: #111827;\">Purchase Invoice<\/strong> from <strong style=\"color: #111827;\">Purchase Options<\/strong> in the construction contract, the system fills the cost centers of each line according to the <strong style=\"color: #111827;\">Cost Tracking Level<\/strong> in the contract project, so purchase costs are charged to the correct centers without manual entry. The values are filled for review and are not locked.<\/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;\"><strong style=\"color: #111827;\">Add New Purchase Invoice<\/strong> + the permission to view the contract<\/span><\/div>\n<div style=\"display: flex; gap: 8px; padding: 4px 0;\"><span style=\"min-width: 120px; color: #6b7280;\">How to Access<\/span><span style=\"color: #1f2430;\"><strong style=\"color: #111827;\">Construction<\/strong> \u2192 <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/v2\/owner\/entity\/construction_contract\/list\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Contracts<\/strong><\/a> \u2192 open the contract \u2192 the <strong style=\"color: #111827;\">Work Items<\/strong> tab \u2192 <strong style=\"color: #111827;\">Purchase Options<\/strong> \u2192 <strong style=\"color: #111827;\">Purchase Invoice<\/strong><\/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: bold; color: #111827;\">Table of Contents<\/p>\n<ol style=\"margin: 0; padding-left: 22px;\">\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#requirements\"><strong style=\"color: #1a56db;\">When Filling Works<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#levels\"><strong style=\"color: #1a56db;\">Choosing the Cost Center by Level<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#split\"><strong style=\"color: #1a56db;\">Distribution Between More Than One Item<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#other-docs\"><strong style=\"color: #1a56db;\">Other Documents<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#after\"><strong style=\"color: #1a56db;\">After Saving<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#related\"><strong style=\"color: #1a56db;\">Related Settings<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#example\"><strong style=\"color: #1a56db;\">Practical Example<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#why\"><strong style=\"color: #1a56db;\">Why Aren&#8217;t the Centers Filled?<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#perms\"><strong style=\"color: #1a56db;\">Permissions<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#rounding\"><strong style=\"color: #1a56db;\">Rounding Example<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#errors\"><strong style=\"color: #1a56db;\">Error Messages and Solutions<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#faq\"><strong style=\"color: #1a56db;\">FAQs<\/strong><\/a><\/li>\n<\/ol>\n<\/div>\n<h2 id=\"requirements\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">When Filling Works<\/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;\">Enabling <strong style=\"color: #111827;\">Purchase Invoices<\/strong> under <strong style=\"color: #111827;\">Item-Level Cost Center Assignment by Transaction Type<\/strong> in <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/settings\/accounting_general\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">General Accounting Settings<\/strong><\/a> (the <strong style=\"color: #111827;\">Cost Center Assignment<\/strong> section).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Creating the invoice directly from the contract. An invoice converted from a purchase order or created manually is not filled.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Having a cost center for the project or the item, according to the level, in <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/cost_centers\/index\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Cost Centers<\/strong><\/a>.<\/li>\n<\/ul>\n<h2 id=\"levels\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Choosing the Cost Center by Level<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Cost Tracking Level<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Cost center for each line<\/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;\">Project<\/strong> (used if the field is left empty)<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The project cost center for all lines<\/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;\">Tenders<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The cost center of the direct parent sub-tender of the work item<\/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;\">Work Item<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The cost center of the work item the material belongs to<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"split\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Distribution Between More Than One Item<\/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;\">A material used in more than one item is distributed by its value in each item (60 units and 40 units at the same cost = 60% and 40%).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If the cost is zero in all items, it is distributed by quantities.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Shared centers are combined in one distribution line.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Percentages have two decimal places, and the rounding difference goes to the last center so the total is 100%.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Lines split by unit are each calculated separately.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">A material whose item has no cost center doesn&#8217;t get a cost center.<\/li>\n<\/ul>\n<h2 id=\"other-docs\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Other Documents<\/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;\">Distribution over multiple centers is in the purchase invoice only.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Purchase Order<\/strong> and <strong style=\"color: #111827;\">Purchase Quotation<\/strong>: one cost center field, filled only if the line has one center.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Purchase requests and quotation requests don&#8217;t carry cost centers.<\/li>\n<\/ul>\n<h2 id=\"after\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">After Saving<\/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 distribution is used in the purchase invoice journal entry like any manual distribution.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">You can edit or delete any distribution before saving, or by editing the invoice later.<\/li>\n<\/ul>\n<h2 id=\"related\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Related Settings<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Setting<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Effect<\/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;\">Purchase Invoices<\/strong> in <strong style=\"color: #111827;\">Item-Level Cost Center Assignment by Transaction Type<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Shows the cost centers column for each item; a condition for filling<\/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;\">Allow Cost Center Distribution to Exceed 100%<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Allows editing the percentages to exceed 100% after filling<\/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;\">Cost Tracking Level<\/strong> in the project<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Sets which center is used<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"example\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Practical Example<\/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;\">A project whose <strong style=\"color: #111827;\">Cost Tracking Level<\/strong> is <strong style=\"color: #111827;\">Work Item<\/strong>.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The material &#8220;Cement&#8221; is used in the &#8220;Foundations&#8221; item with a quantity of 60 and in the &#8220;Columns&#8221; item with a quantity of 40 at the same cost, and each item has a cost center.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">When creating a purchase invoice from the contract for both items, one cement line appears with a quantity of 100, distributed 60% to the &#8220;Foundations&#8221; center and 40% to the &#8220;Columns&#8221; center.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If the level were <strong style=\"color: #111827;\">Project<\/strong>, the line would appear 100% on the project center.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If cement were used by the bag in one item and by the ton in the other, two lines would appear, each with its own distribution.<\/li>\n<\/ol>\n<h2 id=\"why\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Why Aren&#8217;t the Centers Filled?<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Cause<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Solution<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Distribution is disabled for purchase invoices<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Enable it from <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/settings\/accounting_general\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">General Accounting Settings<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The invoice is converted from a purchase order<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Choose the centers manually<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The project or the item has no cost center<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Add a center from <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/cost_centers\/index\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Cost Centers<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The material isn&#8217;t linked to a work item in the contract<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Choose the center manually<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"perms\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Permissions<\/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;\"><strong style=\"color: #111827;\">Add New Purchase Invoice<\/strong> and the <strong style=\"color: #111827;\">Inventory<\/strong> app.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The permission to view the contract.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Edit General Settings<\/strong> to enable the distribution setting.<\/li>\n<\/ul>\n<h2 id=\"rounding\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Rounding Example<\/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;\">A material in three items with the same value: 33.33%, 33.33%, and 33.34% (the difference goes to the last center).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">A zero-cost material in two items with quantities 30 and 70: 30% and 70% by quantities.<\/li>\n<\/ul>\n<h2 id=\"errors\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Error Messages and Solutions<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Message<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Cause<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Solution<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The cost centers column doesn&#8217;t appear<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Distribution is not enabled for purchase invoices.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Enable it from <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/settings\/accounting_general\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">General Accounting Settings<\/strong><\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">A line without a cost center<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The item or the project has no cost center.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Choose it manually or add a center for the item.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"faq\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">FAQs<\/h2>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">Where do I change the tracking level?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">In the project data from <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/v2\/owner\/entity\/construction_project\/list\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Construction Projects<\/strong><\/a>, the <strong style=\"color: #111827;\">Cost Tracking Level<\/strong> field.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">What is the default value?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The field is optional; if left empty, it is treated as <strong style=\"color: #111827;\">Project<\/strong>.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">Are the values locked?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">No.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">Are they filled in the invoice converted from a purchase order?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">No.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">Does the distribution of a saved invoice change if I change the level?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">No; the level applies to new invoices only.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">Does the distribution appear if the line has one center?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Yes; one center at 100%.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">Does the distribution differ if the material cost differs between items?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Yes; the distribution is by value, not quantity. A material with a quantity of 50 at a cost of 2,000 in one item and 50 at a cost of 1,000 in another is distributed 66.67% and 33.33%.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">Is the cost center also filled in the regular line field?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">When the line has one center, the single cost center field is filled as well.<\/p>\n<\/div>\n","protected":false},"author":17,"featured_media":0,"template":"","categories":[2070,15599,16736],"tags":[30676,15689,15655,3999,16110,4664,6938,8132,28312,4978,15730,28313],"class_list":["post-158452","tutorial","type-tutorial","status-publish","hentry","category-operations","category-construction","category-contracts-construction","tag-add-new-purchase-invoice","tag-construction","tag-cost-center-assignment","tag-cost-centers","tag-cost-tracking-level","tag-general-accounting-settings","tag-purchase-invoice","tag-purchase-invoices","tag-purchase-options","tag-purchase-order","tag-work-item","tag-work-items"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract - 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\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"When you create a Purchase Invoice from Purchase Options in the construction contract, the system fills the cost centers of each line according to the Cost Tracking Level in the contract project, so purchase costs are charged to the correct centers without manual entry. The values are filled for review and are not locked. Required [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-15T13:50:06+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=\"4 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\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/\",\"name\":\"Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\"},\"datePublished\":\"2026-11-08T10:13:47+00:00\",\"dateModified\":\"2026-11-15T13:50:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract - 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\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/","og_locale":"en_US","og_type":"article","og_title":"Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract - Daftra Knowledge Base","og_description":"When you create a Purchase Invoice from Purchase Options in the construction contract, the system fills the cost centers of each line according to the Cost Tracking Level in the contract project, so purchase costs are charged to the correct centers without manual entry. The values are filled for review and are not locked. Required [&hellip;]","og_url":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2026-11-15T13:50:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 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\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/#webpage","url":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/","name":"Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/en\/#website"},"datePublished":"2026-11-08T10:13:47+00:00","dateModified":"2026-11-15T13:50:06+00:00","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-cost-center-filling-in-the-purchase-invoice-created-from-a-construction-contract\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Automatic Cost Center Filling in the Purchase Invoice Created from a Construction Contract"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/158452","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":2,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/158452\/revisions"}],"predecessor-version":[{"id":158478,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/158452\/revisions\/158478"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=158452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=158452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=158452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}