Professional Documents
Culture Documents
Antiguedad de Saldos Query
Antiguedad de Saldos Query
Cooriente = (
case
when (Doccur=@LOCCUR and getdate() <= DocDueDate) then (DocTotal-PaidToDate)
else (
case
when getdate() <= DocDueDate and Doccur='USD' then (DocTotalFC-PaidFC)
else 0 end) end)