Page 1 of 1

Job Cost Centre not assigned

Posted: Wed Jan 20, 2021 5:41 am
by BrettCrowley
Hi guys,

Currently working on the AU sandbox environment, Company 2 (Test Company)

Job 4269, Section 2406 has a job cost centre with the ID 2705. The returned data has no Cost Center data. It's just a blank dict.

Code: Select all

{
	'AutoAdjustDates': False,
	'CostCenter': {},
	'Description': 'my cost centre', 
	'DisplayOrder': 1, 
	'EndDate': None, 
	'ID': 2705, 
	'Name': 'Online Sales', 
	'Notes': 'my cost centre notes', 
	'OrderNo': '', 
	'PercentComplete': '', 
	'Stage': 'Pending', 
	'StartDate': None, 
	'VariationApprovalDate': None
}
As far as I was aware, the job cost centre must link to a cost centre set up in accounts. Can you please give me some insight on this? Is it a bug, or am I missing some information?

Thanks

Re: Job Cost Centre not assigned

Posted: Wed Jan 20, 2021 6:58 am
by Muqeet
Hello Brett,

For some strange reason the cost center ID is 0 for this record. I can't think of any case where a cost center could be set to 0, it could just be a case of bad data.