Tax Rate Bug  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Tax Rate Bug

Postby SBarnes » Fri Sep 14, 2018 12:07 pm

Hi Mike,

There is a bug in the tax rate calls, all of them I suspect but I only fixed the Get.

Code: Select all
AppHost.Routes.Add(typeof(TaxRateGETRequest), "/TaxRates/{TaxID}", "GET", "Retrieves a tax rate.", "");


should actually be

Code: Select all
AppHost.Routes.Add(typeof(TaxRateGETRequest), "/TaxRates/{RecID}", "GET", "Retrieves a tax rate.", "");


as the property on the Request object is RecID and not TaxID and so you get a message about invalid property because the reflection fails.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1620
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Tax Rate Bug  Topic is solved

Postby Mike.Sheen » Fri Sep 14, 2018 12:35 pm

Thanks Stuart - I've logged this as DEV-6878.

Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757


Return to REST API

Who is online

Users browsing this forum: No registered users and 1 guest

cron