Multi-company issue with GETing CostCenters in contractorInvoices endpoint
Posted: Wed Jul 03, 2024 9:46 am
Hi,
We moved to a multi-company setup and noticed that GET from the API endopoint `api/v1.0/companies/{company_id}/contractorInvoices/{invoice_id}` stopped returning "CostCenters" as it used to in a single company setup.
Below is snippet of what we currently receive:
```
"CostCenters": [
{
"ContractorJob": 2236,
"CostCenter": {
"ID": null,
"Name": "Default Account",
"ExpenseAccountNo": "331"
}, ...
```
Every "CostCenter" is now null and every "Name" is "Default Account", whereas before we had a proper ID and name.
Similarly, when looking up invoices via UI, the displayed Cost Center is now "Default Account", which makes me think it might be a bug.
Can you confirm?
We moved to a multi-company setup and noticed that GET from the API endopoint `api/v1.0/companies/{company_id}/contractorInvoices/{invoice_id}` stopped returning "CostCenters" as it used to in a single company setup.
Below is snippet of what we currently receive:
```
"CostCenters": [
{
"ContractorJob": 2236,
"CostCenter": {
"ID": null,
"Name": "Default Account",
"ExpenseAccountNo": "331"
}, ...
```
Every "CostCenter" is now null and every "Name" is "Default Account", whereas before we had a proper ID and name.
Similarly, when looking up invoices via UI, the displayed Cost Center is now "Default Account", which makes me think it might be a bug.
Can you confirm?