Automatic Filling of Cost Centers in the Purchase Invoice Created from a Construction Contract
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’s project, so the purchase costs are charged to the correct cost centers without manual entry. The values are filled for review and aren’t locked.
Contents
- When the Filling Works
- Choosing the Cost Center According to the Level
- Distribution Between More Than One Item
- Other Documents
- After Saving
- Related Settings
- Practical Example
- Why Aren’t the Cost Centers Filled?
- Permissions
- Rounding Example
- Error Messages and Their Solutions
- Frequently Asked Questions
When the Filling Works
- Enabling Purchase Invoices under Item-Level Cost Center Assignment by Transaction Type in General Accounting Settings (the Cost Center Assignment section).
- Creating the invoice directly from the contract. An invoice converted from a purchase order or created manually isn’t filled.
- Having a cost center for the project or for the item according to the level in Cost Centers.
Choosing the Cost Center According to the Level
| Cost Tracking Level | Cost Center for Each Line |
|---|---|
| Project (applied if the field is left empty) | The project’s cost center for all lines |
| Tenders | The cost center of the sub-tender that is the direct parent of the work item |
| Work Item | The cost center of the work item to which the material belongs |
Distribution Between More Than One Item
- 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%).
- If the cost is zero in all items, it is distributed by the proportion of the quantities.
- Shared cost centers are combined in one distribution line.
- The percentages have two decimal places, and the rounding difference goes to the last cost center so that the total is 100%.
- Lines split by unit are each calculated independently.
- A material whose item has no cost center doesn’t take a cost center.
Other Documents
- Distribution over several cost centers is in the purchase invoice only.
- Purchase Order and Purchase Quotation: a single cost center field that is filled only if the line has one cost center.
- The purchase request and the quotation request don’t carry cost centers.
After Saving
- The distribution is used in the purchase invoice journal entry like any manual distribution.
- You can edit or delete any distribution before saving or by editing the invoice later.
Related Settings
| Setting | Effect |
|---|---|
| Purchase Invoices in Item-Level Cost Center Assignment by Transaction Type | Shows the cost centers column for each item; a condition for the filling |
| Allow Cost Center Distribution to Exceed 100% | Allows editing the percentages to exceed 100% after the filling |
| Cost Tracking Level in the project | Determines which cost center is used |
Practical Example
- A project whose Cost Tracking Level is Work Item.
- A “Cement” material used in the “Foundations” item with a quantity of 60 and in the “Columns” item with a quantity of 40 at the same cost, and each item has a cost center.
- 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 “Foundations” cost center and 40% to the “Columns” cost center.
- If the level were Project, the line would appear 100% on the project’s cost center.
- 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.
Why Aren’t the Cost Centers Filled?
| Cause | Solution |
|---|---|
| The assignment is disabled for purchase invoices | Enable it from General Accounting Settings |
| The invoice is converted from a purchase order | Select the cost centers manually |
| The project or the item has no cost center | Add a cost center from Cost Centers |
| The material isn’t linked to a work item in the contract | Select the cost center manually |
Permissions
- Add New Purchase Invoice and the Inventory app.
- Permission to view the contract.
- Edit General Settings to enable the assignment setting.
Rounding Example
- A material in three items with the same value: 33.33%, 33.33%, and 33.34% (the difference goes to the last cost center).
- A material whose cost is zero in two items with quantities of 30 and 70: 30% and 70% according to the quantities.
Error Messages and Their Solutions
| Message | Cause | Solution |
|---|---|---|
| The cost centers column doesn’t appear | The assignment isn’t enabled for purchase invoices. | Enable it from General Accounting Settings. |
| A line without a cost center | The item or the project has no cost center. | Select it manually or add a cost center for the item. |
Frequently Asked Questions
Where do I change the tracking level?
In the project data from Projects, the Cost Tracking Level field.
What is the default value?
The field is optional; if left empty, it is treated as Project.
Are the values locked?
No.
Are they filled in the invoice converted from a purchase order?
No.
Does the distribution of a saved invoice change if I change the level?
No; the level applies to new invoices only.
Does the distribution appear if the line has one cost center?
Yes; one cost center at 100%.
Does the distribution differ if the material’s cost differs between items?
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%.
Is the cost center also filled in the regular line field?
When the line has one cost center, the single cost center field is filled as well.