Hi,
In AX4 I use this query as part of a SSRS report:
select 'Invoice' AS Indicator, c.purchid as [Purchase Order], c.invoiceaccount as [Vendor Ac], c.purchname as [Name], c.dimension as [Site], a.costamountphysical as [Amount], a.packingslipid as [Delivery Note], a.recid from inventtrans a inner join ledgertrans b on a.voucher = b.voucher inner join purchtable c on a.transrefid = c.purchid where a.dataareaid = @dataareaid and b.dataareaid = @dataareaid and c.dataareaid = @dataareaid and b.accountnum = '34050' and b.transdate <= @date and b.voucher like 'PI-%' and a.voucherphysical like 'GRN-%'
Can anybody suggest how I might rewrite this so the query runs in AX2012?
Cheers
Paul
*This post is locked for comments
I have the same question (0)