Error: Group Cost Center Cannot Be Used in Purchase Invoice

Hi Frappe Team,

I encountered an error while submitting a Purchase Invoice:

image

It seems like group cost centers are not allowed for transactions, but the system still lets me select them during the creation of the invoice.

I will attach a screenshot of the error for reference.

Please open the purchase invoice and remove the Group Node cost center from both the Purchase Invoice and Purchase Invoice Item levels. The Cost Center field is available in the Accounting Dimension section. You can only use the child node cost center.

Even though I have changed the cost center selection to child nodes only, the issue is still occurring.

Create a new invoice and select the child cost center, if it worked then you have to check the that invoice and also you have to check the item level.