{"id":159606,"date":"2026-11-08T10:13:47","date_gmt":"2026-11-08T10:13:47","guid":{"rendered":"https:\/\/docs.daftra.com\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/"},"modified":"2026-11-23T14:57:27","modified_gmt":"2026-11-23T14:57:27","slug":"automatic-filling-of-cost-centers-in-the-purchase-invoice-created","status":"publish","type":"tutorial","link":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/","title":{"rendered":"Automatic Filling of Cost Centers 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 creating a <strong style=\"color: #111827;\">Purchase Invoice<\/strong> from the <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\u2019s project, so the purchase costs are charged to the correct cost centers without manual entry. The values are filled for review and aren\u2019t 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> + 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 <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;\">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 the 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 According to the 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\u2019t the Cost 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 Their Solutions<\/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=\"requirements\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">When the 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 isn\u2019t 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 for 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 According to the 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> (applied 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\u2019s 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 sub-tender that is the direct parent 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 to which the material belongs<\/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 the proportion of 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 the proportion of the quantities.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Shared cost centers are combined in one distribution line.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The percentages have two decimal places, and the rounding difference goes to the last cost center so that 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 independently.<\/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\u2019t take 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 several cost 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>: a single cost center field that is filled only if the line has one cost center.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The purchase request and the quotation request don\u2019t 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 the 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 the 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;\">Determines which cost 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;\">A \u201cCement\u201d material used in the \u201cFoundations\u201d item with a quantity of 60 and in the \u201cColumns\u201d 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 line appears for the cement with a quantity of 100, distributed 60% to the \u201cFoundations\u201d cost center and 40% to the \u201cColumns\u201d cost 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\u2019s cost center.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If the cement were used by the bag in one item and by the ton in the other, two lines would appear, each with its independent 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\u2019t the Cost 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;\">The assignment 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;\">Select the cost 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 cost 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\u2019t 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;\">Select the cost 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;\">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 assignment 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 cost center).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">A material whose cost is zero in two items with quantities of 30 and 70: 30% and 70% according to the 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 Their 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\u2019t appear<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The assignment isn\u2019t 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;\">Select it manually or add a cost 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;\">Frequently Asked Questions<\/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;\">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 cost center?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Yes; one cost 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\u2019s 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 by 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 cost center, the single cost center field is filled as well.<\/p>\n<\/div>\n","protected":false},"author":38,"featured_media":0,"template":"","categories":[2070,15599,16736],"tags":[30676,15689,31591,3999,16110,30828,6938,8132,28312,4978,15730,28313],"class_list":["post-159606","tutorial","type-tutorial","status-publish","hentry","category-operations","category-construction","category-contracts-construction","tag-add-new-purchase-invoice","tag-construction","tag-cost-center-allocation-en","tag-cost-centers","tag-cost-tracking-level","tag-general-ledger-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 Filling of Cost Centers 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-filling-of-cost-centers-in-the-purchase-invoice-created\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automatic Filling of Cost Centers in the Purchase Invoice Created from a Construction Contract - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"When creating a Purchase Invoice from the Purchase Options in the construction contract, the system fills the cost centers of each line according to the Cost Tracking Level in the contract\u2019s project, so the purchase costs are charged to the correct cost centers without manual entry. The values are filled for review and aren\u2019t locked. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-23T14:57:27+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=\"5 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-filling-of-cost-centers-in-the-purchase-invoice-created\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/\",\"name\":\"Automatic Filling of Cost Centers 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-23T14:57:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automatic Filling of Cost Centers in the Purchase Invoice Created from a Construction Contract\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automatic Filling of Cost Centers 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-filling-of-cost-centers-in-the-purchase-invoice-created\/","og_locale":"en_US","og_type":"article","og_title":"Automatic Filling of Cost Centers in the Purchase Invoice Created from a Construction Contract - Daftra Knowledge Base","og_description":"When creating a Purchase Invoice from the Purchase Options in the construction contract, the system fills the cost centers of each line according to the Cost Tracking Level in the contract\u2019s project, so the purchase costs are charged to the correct cost centers without manual entry. The values are filled for review and aren\u2019t locked. [&hellip;]","og_url":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2026-11-23T14:57:27+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 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-filling-of-cost-centers-in-the-purchase-invoice-created\/#webpage","url":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/","name":"Automatic Filling of Cost Centers 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-23T14:57:27+00:00","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/automatic-filling-of-cost-centers-in-the-purchase-invoice-created\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Automatic Filling of Cost Centers in the Purchase Invoice Created from a Construction Contract"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/159606","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\/38"}],"version-history":[{"count":2,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/159606\/revisions"}],"predecessor-version":[{"id":159610,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/159606\/revisions\/159610"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=159606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=159606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=159606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}