How can I turn the code below into Query using only code and without using Query from AOT?
while select custInvoiceJour where ((invoiceAccount && custInvoiceJour.InvoiceAccount == invoiceAccount) || !invoiceAccount) && custInvoiceJour.InvoiceDate >= fromDate && custInvoiceJour.InvoiceDate <= toDate && ((salesId && custInvoiceJour.SalesId==salesId) || !salesId) && ((salesTaker && custInvoiceJour.WorkerSalesTaker==salesTaker) || !salesTaker) join custTable where custTable.AccountNum == custInvoiceJour.InvoiceAccount join dirPartyTable where custTable.Party == dirPartyTable.RecId join salesTable where salesTable.SalesId == custInvoiceJour.SalesId && ((salesResponsible && salesTable.WorkerSalesResponsible==salesResponsible) || !salesResponsible)
You might wanna be have a look at this link: learn.microsoft.com/.../how-to-create-queries-by-using-x
You'll need to write the code. Do you have any particular problem with it?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156