RE: Field not showing in report even though the field is in the design
Hello again, this has resurfaced on my radar, I have decided to try it using the SRSReportDataProviderBase. I am following a tutorial but I am stuck at the method- ProcessReport.
This query works fine in SQL but how do I put it in X++
Query:
SELECT
INVOICEID
,INVOICEACCOUNT
,INVOICINGNAME
,CUSTSETTLEMENT.DUEDATE
,CUSTSETTLEMENT.CREATEDDATETIME
,CUSTSETTLEMENT.TRANSDATE
,CustSettlement.SETTLEAMOUNTREPORTING
,INVOICEAMOUNT
,PAYMENT
,INVOICEAMOUNTMST
FROM CUSTINVOICEJOUR join CUSTTRANS ON CUSTTRANS.INVOICE=CUSTINVOICEJOUR.INVOICEID AND CUSTTRANS.AccountNum = CUSTINVOICEJOUR.InvoiceAccount
and CUSTTRANS.TransDate = CUSTINVOICEJOUR.InvoiceDate
and CUSTTRANS.Voucher = CUSTINVOICEJOUR.LedgerVoucher
join CUSTSETTLEMENT
on CUSTSETTLEMENT.TransCompany = CUSTTRANS.dataAreaId
and CUSTSETTLEMENT.TransRecId = CUSTTRANS.RecId
and CUSTSETTLEMENT.AccountNum = CUSTTRANS.AccountNum
WHERE CUSTSETTLEMENT.DUEDATE = CUSTINVOICEJOUR.DUEDATE
AND CUSTSETTLEMENT.DUEDATE between'2018-09-01' AND '2019-08-31'
AND CUSTSETTLEMENT.TRANSDATE <'2019-08-31 0:0:0'
AND CUSTINVOICEJOUR.INVOICEID LIKE 'ACP%'
AND CUSTINVOICEJOUR.INVOICEACCOUNT='XXXXXX'