Commit ab9c21b7 authored by mmhatre's avatar mmhatre

change the sql query line no 281

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@201154 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 779c5ec6
......@@ -34,6 +34,7 @@ public class PostOrdCreditChk
//public String CreditCheck (HashMap paramMap, Connection conn) throws RemoteException,ITMException
public ArrayList<String> CreditCheck (HashMap paramMap, Connection conn) throws RemoteException,ITMException//Amit 27/10/04. This function is a copy of gf_credit_check function.
{
int mCount=0, mChkDays=0, llIgnGays=0, llSerCount=0, llPolicyNo=0 ;
String errString = " ", mStat="", lsCreditTerm="", lsVarValue="", lsItemSerCrPolicy="", lsItemSer="", lsConsiderPbo="", lsOrdNewPrd="" ;
String lsAcctPrd="", lsPriceList="", lsItemCode="", lsCrPolicy="",lsInvCallFr="",lsItemSerOrig="" ;
......@@ -272,10 +273,14 @@ public class PostOrdCreditChk
// CHECKING WHETHER CUST CODE & ITEM SER EXISTS IN CUSTOMERSERIES TABLE
//where decode(item_ser__crpolicy,null,item_ser,item_ser__crpolicy) = :asItemSer);
//where nvl(item_ser__crpolicy,item_ser) = :asItemSer); //Manoj ....25/7/03 (db2)
lsSql = "select count(*) from customer_series "
//changed by manish 24-05-2019 start
/*lsSql = "select count(*) from customer_series "
+ " where cust_code = ? and item_ser in (select item_ser from itemser "
+ " where (case when item_ser__crpolicy is null then item_ser else item_ser__crpolicy end ) = ?) ";
+ " where (case when item_ser__crpolicy is null then item_ser else item_ser__crpolicy end ) = ?) ";*/
lsSql = "select count(*) from customer_series" + " where cust_code =? and item_ser in (select item_ser from itemser" +
" where (item_ser__crpolicy is null or item_ser__crpolicy =? ))";
//changed by manish 24-05-2019 end
pstmt = conn.prepareStatement(lsSql);
pstmt.setString(1,asCustCodeBil);
pstmt.setString(2,asItemSer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment