Sign in to participate

Be Kind, Be Helpful

Ask a question, answer a question, and get to know the fine people in the Harvest community.

Forum powered by Altered Beast
This is a Topic in API and Developers

is-billed type field in reporting of project entries

Avatar

Is it just me, or has the type for the is-billed field in the reporting of project entries changed at some point recently?

The documentation still shows it should be boolean:

http://www.getharvest.com/api/reporting

false

But I’m getting this sent back from the API to my system:

0

Is this a mistake, or a permanent change? If the latter, could the documentation be updated please? It’s not clear why this has changed from a boolean (since other true or false fields are still being represented by booleans) – is this because there are changes being made where the is-billed value can be something other than 0 / false or 1 / true?

Thanks.

Avatar

Ok, so I can’t post bits of code; this makes the forum a bit useless for discussing an API

Avatar

Right, let’s do this the hard way:

The documentation says:

But this is what I’m getting back:

P.S. Please let us post bits of code in the forums (you don’t need to format it – just stop stripping it); and can you let us edit our own posts too?

Avatar

Er, Ok – the bits of code are Ok in the RSS feed, but the image markup doesn’t get processed. This is all a bit scrappy guys…

All I can think of is:

http://www.youtube.com/watch?v=JYc05gZFly0

Avatar

Sorry about the code posting. You may use Textile helpers to paste code. This means PRE tags for code blocks and ‘@’ symbols around inline code. We should document this, as well as style the code blocks.

I do not think the is-billed type was changed intentionally. I’ll take a closer look today and see what’s up.

Avatar

Tom, I’ve gotten the field fixed up. Is billed is a (relatively) new field and I believe it has been wrong since it was added. Hope that helps!

 

[ Please sign up to post a comment. ]