Hi experts, can you help me to know what are the Down Payment that can be applied as payment? ex : AR Invoice.
I don't know what status should I used. Here's my SQL query :
SELECT a.DocEntry, a.CardCode, a.Doctotal, a.DpmAppl ,a.DocTotal - a.DpmAppl [DDFBalance] FROM ODPI a INNER JOIN DPI1 b ON a.DocEntry = b.DocEntry WHERE a.DocTotal - a.DpmAppl > 0 and b.TargetType != 14 AND a.DocStatus = 'C'