Postable GLs  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Postable GLs

Postby neil.interactit » Wed Oct 28, 2015 10:54 am

I am producing a GL lookup ...
Code: Select all
Dim ledger As New JiwaApplication.Entities.GeneralLedger.Account()
ledger.Search(_purchaseOrderForm)
accountNo = ledger.AccountNo

This lookup list includes both postable and non-postable accounts. It appears elsewhere in Jiwa that you can display a lookup with only postable accounts ... how do you do this?
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Postable GLs  Topic is solved

Postby Mike.Sheen » Wed Oct 28, 2015 10:58 am

Supply the FilterSQL parameter - e.g.:

Code: Select all
Dim ledger As New JiwaApplication.Entities.GeneralLedger.Account()
ledger.Search(_purchaseOrderForm, "GL_Ledger.PostingAcc = 1 AND GL_Ledger.IsEnabled = 1 ")
accountNo = ledger.AccountNo
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: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Postable GLs

Postby neil.interactit » Wed Oct 28, 2015 11:11 am

Awesome thanks.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests

cron