you can set default cost center for company in the company settings. just search “company list” in the search bar and it will take you to company list. then you can set cost center in the company settings.
please check if this problem happened only in that particular sales invoice or is it happening every time you make a sales invoice?
also please check your “sales” account, inventory and customer account, does they also have cost center default that you need to set up before…
if this problem occur every-time you create sales invoice or only happen in one specific item/customer/event?
i’m afraid you will have to do a little investigation on this to solve this problem.
We have the same issue on POS, but only when we’re making change. If the customer pays the exact amount (or we input the exact amount), the sales invoice is created successfully. Likewise, if we create a sales invoice directly and select “Include Payment (POS)” and over pay, expecting change, we get the same error when we “submit”.
I have a similar issue. If I create an invoice from scratch it’s fine, but if I go through the sales process of Quote-Sales Order-Delivery-Invoice the Invoice tells me “default cost center from ‘company A’ doesn’t belong to ‘Company B’” Even though the whole process was in ‘Company B.’ All of the cost centers in ‘Company B’ are correct. I can’t even find anywhere to change the cost center of the Invoice.
Edit: also happens if I make a new Invoice and “Pull Items from Sales Order.”
I came across a similar issue where, when I create a sales invoice programmatically through Python code, and when I try to ‘submit’ the sales invoice, it said “default cost center from ‘company A’ doesn’t belong to ‘Company B”
When I check the accounting details of the invoice items, found that the ‘cost center’ for the item is set as company A cost center, instead of company B. All, I had to do was change the invoice item to have correct cost center and it worked.
I had to update my Python code to set cost_center to correct one.
I found issue with my Expense Claim.
The Default Expense Claim Payable Account was set to a P&L Account, Expenses which should be a Balance Sheet Account, specifically Creditors Account or similar.
Since the Payable Account was set to a P&L account, this error was thrown "Expenses needs a Cost Center. Set Default Cost Center for the Company "