Hi Chintan,
Please refer to my query below. When I tried to run the query, the results that came out does not tally with the actual payment posted for that day, please advise.
SELECT T1.[SumApplied], T0.[CardCode], T0.[CardName] FROM OCRD T0 , VPM2 T1 INNER JOIN OVPM T2 ON T1.[DocNum] = T2.[DocEntry] WHERE T2.[DocDate] between [%0] and [%1]