Linking expenses to cost centers needs to be declared! But where in ERPnext?
In the database table for purchase invoices I have seen there is a field cost_center. But in each record this field remains empty.
When I have a look into the purchase invoice form, I cannot find a field for cost center?!
There is a small hint in the docs for purchase invoice, that cost center would be treated as accounting dimension. But also this field does not exist in the form!
So where can I link my expenses to the right cost center?
@abrarpv97@Suresh_Thakor
Thank you for your replies. I don’t see this field. After a short research in the html code of the form, I found there is a form field ‘cost_center’:
When I have a look at the css styling (…/assets/css/desk.min.css?ver=1591714894.0):
.hide-control {
display: none!important;
}
So the field is hidden and furthermore classified as !important?!
Finally, I stil cannot save my record
I’m ending up with error:
‘Purchase Invoice ACC-PINV-2020-00002: Cost Center is required for ‘Profit and Loss’ account 7241 - Pkw-Kosten Mercedes 80%Bka - SG. Please set up a default Cost Center for the Company.’
Default cost center for the compay is set in the company settings.
Have you added taxes? If so, check for each tax row if the cost center is added? Also, check in each item row too. There is also a separate field called “Cost Center” under Accounting Dimensions in the Purchase Invoice document as shown below: