Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8627

Re: Approval Template

$
0
0

Manish /Mustafa Rafee ,

 

 

Tested this one and its found working

 

select

 

 

CASE when OCRD.CreditLine = '1' or OCRD.County = 'test1' or ocrd.county= 'test2'  then 'true' else 'false' end

 

 

from

 

 

OCRD

 

 

where

 

 

     OCRD.CreditLine= '1'  and CardCode=$[ORDR.Cardcode]

 

 

 

 

But the issue is that  i got this code from my friend , is there any overlapping if i use this code permanently??Because i,ve been using the following query for another template .Please check it

 

 

SELECT

  CASE WHEN OCRD.Balance>=OCRD.CreditLine THEN 'TRUE' ELSE 'FALSE' END

FROM

  OCRD

WHERE

isnull(OCRD.CreditLine,0)>0 and CardCode=$[ORDR.Cardcode]


Viewing all articles
Browse latest Browse all 8627

Latest Images

Trending Articles



Latest Images

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