Page 1 of 1

Postable GLs

PostPosted: Wed Oct 28, 2015 10:54 am
by neil.interactit
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?

Re: Postable GLs  Topic is solved

PostPosted: Wed Oct 28, 2015 10:58 am
by Mike.Sheen
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

Re: Postable GLs

PostPosted: Wed Oct 28, 2015 11:11 am
by neil.interactit
Awesome thanks.