Quantcast
Viewing all articles
Browse latest Browse all 8623

Down payment cannot be copied because it is already closed

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'

Viewing all articles
Browse latest Browse all 8623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>