Cari açılış fişinde ki tutar ile borç takipte ki tutar farklı .
UPDATE LG_017_01_CLFLINE SET SPECODE='SORUN' WHERE LOGICALREF IN ( SELECT CLF.LOGICALREF FROM LG_017_01_PAYTRANS PAY JOIN LG_017_01_CLFLINE CLF ON CLF.LOGICALREF=PAY.FICHEREF AND CLF.TRCODE=14 JOIN LG_017_CLCARD CL ON CL.LOGICALREF=PAY.CARDREF WHERE PAY.TRCODE=14 AND PAY.MODULENR=5 AND PAY.TRCURR NOT IN (0,160) --AND CLIENTREF=860 --AND FICHEREF=2323 --AND CARDREF=641 GROUP BY CLF.LOGICALREF ,CLF.TRNET,CL.CODE HAVING SUM(TOTAL)CLF.TRNET) Tespit edilip bilgi verildi -