Hi Rajeesh,
Try this query
SELECT Distinct'TRUE'FROM OCRD T0
WHERE T0.CardCode =$[ORDR.CardCode] AND(T0.[CreditLine] > 0 and T0.[Balance] + $[ORDR.DocTotal] > T0.[CreditLine])and t0.[DebPayAcct] <> ('1304020001')
I hope it helps
Hi Rajeesh,
Try this query
SELECT Distinct'TRUE'FROM OCRD T0
WHERE T0.CardCode =$[ORDR.CardCode] AND(T0.[CreditLine] > 0 and T0.[Balance] + $[ORDR.DocTotal] > T0.[CreditLine])and t0.[DebPayAcct] <> ('1304020001')
I hope it helps