Tax Rate from BAS Code  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Tax Rate from BAS Code

Postby SBarnes » Sat Sep 03, 2022 2:10 pm

Is there a simple way to get the tax rate object or at least the id from the bas code without resorting to actually calling to the database with SQL or using ORM Lite, I looked at the entity object but it doesn't have a read from method for it?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Tax Rate from BAS Code  Topic is solved

Postby Mike.Sheen » Mon Sep 05, 2022 10:52 am

SBarnes wrote:Is there a simple way to get the tax rate object or at least the id from the bas code without resorting to actually calling to the database with SQL or using ORM Lite, I looked at the entity object but it doesn't have a read from method for it?


No. BAS codes are not necessarily a one-to-one mapping to tax rate, so there would be no guarantee that if you had a BAS code you could obtain a single tax rate from it.
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: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Tax Rate from BAS Code

Postby SBarnes » Mon Sep 05, 2022 11:04 am

Is there a collection anywhere in a namespace that reads them into memory?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Tax Rate from BAS Code

Postby SBarnes » Mon Sep 05, 2022 11:12 am

Don't worry I just found it JiwaFinancials.Jiwa.JiwaApplication.JiwaTaxSystemRates.TaxRates
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 18 guests