Job Cost Centre not assigned

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
BrettCrowley
Posts: 38
Joined: Wed Sep 18, 2019 1:44 am

Job Cost Centre not assigned

Post by BrettCrowley » Wed Jan 20, 2021 5:41 am

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
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Job Cost Centre not assigned

Post by Muqeet » Wed Jan 20, 2021 6:58 am

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.
Muqeet
API Developer | simPRO Software Group
Post Reply