Commit eab13534 authored by arane's avatar arane

"Fwd: LOCATION TRANSFER GIFT ITEM site S0078

If shelf life is not defined 
 stock transfer 7819ST0011 -- created automatic by processing Segregate near/expiry Lot option..... but how this item system considered


1 . if it's not reqd. then system should have prompt for this if user mentioned the expiry/mfg date !
2.  I think , lot wise maintenance , system asking for mfg/expiry date !"

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217061 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 040c466f
...@@ -1196,7 +1196,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -1196,7 +1196,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
}//end of validation for invoice_date }//end of validation for invoice_date
//Added by sarita for invoice_date validation on 09JAN2018[end]\ //Added by sarita for invoice_date validation on 09JAN2018[end]\
//Added by monika salla for exch_rate validation on 08NOV2019 //Added by monika salla for exch_rate validation on 08NOV2019
if (childNodeName.equalsIgnoreCase("exch_rate")) if (childNodeName.equalsIgnoreCase("exch_rate"))
{ {
...@@ -1510,10 +1510,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -1510,10 +1510,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
String lsstkopt="",lsqcreqd="",mstatus2="",channelpartner="",sitecodech=""; String lsstkopt="",lsqcreqd="",mstatus2="",channelpartner="",sitecodech="";
purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom)); purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom));
lineNoItem = checkNull(genericUtility.getColumnValue("line_no", dom)); lineNoItem = checkNull(genericUtility.getColumnValue("line_no", dom));
//ADDED BY MONIKA-15-JULY-2019 //ADDED BY MONIKA-15-JULY-2019
lineNoOrd = checkNull(genericUtility.getColumnValue("line_no__ord", dom)); lineNoOrd = checkNull(genericUtility.getColumnValue("line_no__ord", dom));
System.out.println("purcOrder"+purcOrder); System.out.println("purcOrder"+purcOrder);
if(purcOrder != null && purcOrder.trim().length() >0 ) if(purcOrder != null && purcOrder.trim().length() >0 )
{ {
...@@ -1891,48 +1891,48 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -1891,48 +1891,48 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
System.out.println("mqty2@@@@@@"+mqty2); System.out.println("mqty2@@@@@@"+mqty2);
//if (lcordqty > 0) // 31-may-19 manoharan commented as always quantity to be compared with PO pending quantity //if (lcordqty > 0) // 31-may-19 manoharan commented as always quantity to be compared with PO pending quantity
//{ //{
if (mqty2 > lcordqty ) if (mqty2 > lcordqty )
{
sql="select (case when ordc_perc is null then 0 else ordc_perc end), " +
"(case when qty_tol_perc is null then 0 else qty_tol_perc end) " +
"from item where item_code = ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, itemcode);
rs=pstmt.executeQuery();
if(rs.next())
{ {
sql="select (case when ordc_perc is null then 0 else ordc_perc end), " + mperc=rs.getDouble(1);
"(case when qty_tol_perc is null then 0 else qty_tol_perc end) " + ldqtytol=rs.getDouble(2);
"from item where item_code = ?"; }
pstmt=conn.prepareStatement(sql); rs.close();
pstmt.setString(1, itemcode); rs=null;
rs=pstmt.executeQuery(); pstmt.close();
if(rs.next()) rs=null;
{ double totalQty=0;
mperc=rs.getDouble(1); System.out.println("mqty2 "+mqty2+"- lcordqty"+lcordqty+") / lcordqty"+lcordqty+") * 100 > ldqtytol"+ldqtytol);
ldqtytol=rs.getDouble(2); totalQty= ( ((mqty2 - lcordqty) / lcordqty) * 100 );
} System.out.println("totalQty"+totalQty);
rs.close(); if ( totalQty > ldqtytol )
rs=null; {
pstmt.close(); errCode = "VTPOQTY2";
rs=null; errList.add(errCode);
double totalQty=0; errFields.add(childNodeName.toLowerCase());
System.out.println("mqty2 "+mqty2+"- lcordqty"+lcordqty+") / lcordqty"+lcordqty+") * 100 > ldqtytol"+ldqtytol);
totalQty= ( ((mqty2 - lcordqty) / lcordqty) * 100 );
System.out.println("totalQty"+totalQty);
if ( totalQty > ldqtytol )
{
errCode = "VTPOQTY2";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
} }
}
//} //}
} }
//added by manish mhatre on 16-dec-2019[for allow 3 decimal places] //added by manish mhatre on 16-dec-2019[for allow 3 decimal places]
//start manish //start manish
errCode=distcommon.checkDecimal(qty, lsunit, conn); errCode=distcommon.checkDecimal(qty, lsunit, conn);
if(errCode!=null && errCode.trim().length()>0) if(errCode!=null && errCode.trim().length()>0)
{ {
errCode = "VTUOMDEC3"; errCode = "VTUOMDEC3";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} //end manish } //end manish
} }
/* if isnull(ls_errcode) or len(trim(ls_errcode)) = 0 then /* if isnull(ls_errcode) or len(trim(ls_errcode)) = 0 then
ls_errcode=gbf_val_tolerance() ls_errcode=gbf_val_tolerance()
...@@ -2246,16 +2246,16 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2246,16 +2246,16 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{ {
convQtyStduom = convQtyStduomStr == null ? 0 : Double.parseDouble(convQtyStduomStr); convQtyStduom = convQtyStduomStr == null ? 0 : Double.parseDouble(convQtyStduomStr);
} }
// Added by Mahesh Saggam on 04/07/2019 Start [if conv_qty__stduom is 1 then quantiy and quantity__stduom should be same] // Added by Mahesh Saggam on 04/07/2019 Start [if conv_qty__stduom is 1 then quantiy and quantity__stduom should be same]
if(convQtyStduom == 1) if(convQtyStduom == 1)
{ {
qtyStr = checkNull(genericUtility.getColumnValue("quantity", dom)); qtyStr = checkNull(genericUtility.getColumnValue("quantity", dom));
qtyStdStr = checkNull(genericUtility.getColumnValue("quantity__stduom", dom)); qtyStdStr = checkNull(genericUtility.getColumnValue("quantity__stduom", dom));
System.out.println("quantity = "+qtyStr+" std quantity = "+qtyStdStr); System.out.println("quantity = "+qtyStr+" std quantity = "+qtyStdStr);
if (qtyStr != null && qtyStr.trim().length() > 0) if (qtyStr != null && qtyStr.trim().length() > 0)
{ {
dqty = Double.parseDouble(qtyStr); dqty = Double.parseDouble(qtyStr);
...@@ -2272,7 +2272,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2272,7 +2272,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
} }
// Added by Mahesh Saggam on 04/07/2019 end // Added by Mahesh Saggam on 04/07/2019 end
if (unitStd == null || unitStd.length() == 0) if (unitStd == null || unitStd.length() == 0)
...@@ -2323,14 +2323,14 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2323,14 +2323,14 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
// Added by Mahesh Saggam on 04/07/2019 Start [if conv_rate__stduom is 1 then rate and rate__stduom should be same] // Added by Mahesh Saggam on 04/07/2019 Start [if conv_rate__stduom is 1 then rate and rate__stduom should be same]
if(convRtuomStduom == 1) if(convRtuomStduom == 1)
{ {
rateStr = checkNull(genericUtility.getColumnValue("rate", dom)); rateStr = checkNull(genericUtility.getColumnValue("rate", dom));
ratestdStr = checkNull(genericUtility.getColumnValue("rate__stduom", dom)); ratestdStr = checkNull(genericUtility.getColumnValue("rate__stduom", dom));
System.out.println("rate = "+rateStr+" std rate = "+ratestdStr); System.out.println("rate = "+rateStr+" std rate = "+ratestdStr);
if (rateStr != null && rateStr.trim().length() > 0) if (rateStr != null && rateStr.trim().length() > 0)
{ {
pordRate = Double.parseDouble(rateStr); pordRate = Double.parseDouble(rateStr);
...@@ -2347,9 +2347,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2347,9 +2347,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
} }
// Added by Mahesh Saggam on 04/07/2019 end // Added by Mahesh Saggam on 04/07/2019 end
if (unitStd == null || unitStd.length() == 0) if (unitStd == null || unitStd.length() == 0)
{ {
itemCode = checkNull(genericUtility.getColumnValue("item_code", dom)); itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
...@@ -2684,7 +2684,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2684,7 +2684,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
}//end case loc code }//end case loc code
if (childNodeName.equalsIgnoreCase("lot_no")) if (childNodeName.equalsIgnoreCase("lot_no"))
{ {
String lotno="",lotnoType="",itemcode="",lsstkopt="", suppCode = "", useSuppLot = ""; String lotno="",lotnoType="",itemcode="",lsstkopt="", suppCode = "", useSuppLot = "";
//ADDED BY MUKESH CHAUHAN ON 05/07/19 START //ADDED BY MUKESH CHAUHAN ON 05/07/19 START
String lsitemser="", lsgenlotauto="",lsqcreqd="",lsautogeneratelotno="",lsdis="",lssite=""; String lsitemser="", lsgenlotauto="",lsqcreqd="",lsautogeneratelotno="",lsdis="",lssite="";
...@@ -2692,13 +2692,13 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2692,13 +2692,13 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
lotno = genericUtility.getColumnValue("lot_no", dom); lotno = genericUtility.getColumnValue("lot_no", dom);
lotnoType = discommon.getDisparams("999999", "PO_RECEIPT_LOT", conn); lotnoType = discommon.getDisparams("999999", "PO_RECEIPT_LOT", conn);
System.out.println("lotnoType>>>>>>>>>>>"+lotnoType); System.out.println("lotnoType>>>>>>>>>>>"+lotnoType);
itemcode = genericUtility.getColumnValue("item_code",dom); itemcode = genericUtility.getColumnValue("item_code",dom);
lsautogeneratelotno =discommon.getDisparams("999999","GENERATE_LOT_NO_AUTO", conn); lsautogeneratelotno =discommon.getDisparams("999999","GENERATE_LOT_NO_AUTO", conn);
sitecode = checkNull(genericUtility.getColumnValue("site_code", dom1)); sitecode = checkNull(genericUtility.getColumnValue("site_code", dom1));
suppCode = checkNull(genericUtility.getColumnValue("supp_code", dom1)); suppCode = checkNull(genericUtility.getColumnValue("supp_code", dom1));
loccode = genericUtility.getColumnValue("loc_code",dom); loccode = genericUtility.getColumnValue("loc_code",dom);
sql="select ITEM_SER from item where item_code = ?"; sql="select ITEM_SER from item where item_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemcode); pstmt.setString(1, itemcode);
...@@ -2752,7 +2752,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2752,7 +2752,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//else commented by nandkumar gadkari on 18/07/19 //else commented by nandkumar gadkari on 18/07/19
/*else /*else
{ {
sql="select count(*) from stock where site_code = ? " + sql="select count(*) from stock where site_code = ? " +
"and item_code = ? and loc_code = ? and lot_no =?"; "and item_code = ? and loc_code = ? and lot_no =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2781,7 +2781,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2781,7 +2781,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
}//Added else block by Varsha V on 30-10-18 if stkopt is 2 and use_supplier_lot is Y the lot_no is mandatory }//Added else block by Varsha V on 30-10-18 if stkopt is 2 and use_supplier_lot is Y the lot_no is mandatory
else else
{ {
if(lotno == null || lotno.trim().length() == 0) if(lotno == null || lotno.trim().length() == 0)
{ {
lsstkopt = ""; lsstkopt = "";
...@@ -2826,8 +2826,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2826,8 +2826,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
if(!"N".equalsIgnoreCase(lsgenlotauto))//ADDED BY MUKESH CHAUHAN ON 05/07/19 START if(!"N".equalsIgnoreCase(lsgenlotauto))//ADDED BY MUKESH CHAUHAN ON 05/07/19 START
{ {
sql="select qc_reqd from siteitem where item_code = ? and site_code = ?"; sql="select qc_reqd from siteitem where item_code = ? and site_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemcode); pstmt.setString(1, itemcode);
...@@ -2863,7 +2863,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2863,7 +2863,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
if("M".equalsIgnoreCase(lsautogeneratelotno)) if("M".equalsIgnoreCase(lsautogeneratelotno))
{ {
if(!"Y".equalsIgnoreCase(lsqcreqd)) if(!"Y".equalsIgnoreCase(lsqcreqd))
{ {
if(lotno == null || lotno.trim().length() == 0) if(lotno == null || lotno.trim().length() == 0)
...@@ -2898,7 +2898,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2898,7 +2898,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{ {
if(!"Y".equalsIgnoreCase(lsautogeneratelotno)) if(!"Y".equalsIgnoreCase(lsautogeneratelotno))
{ {
if(lotno == null || lotno.trim().length() == 0) if(lotno == null || lotno.trim().length() == 0)
{ {
itemcode = genericUtility.getColumnValue("item_code",dom); itemcode = genericUtility.getColumnValue("item_code",dom);
...@@ -3132,7 +3132,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -3132,7 +3132,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
sitecodemfg=checkNull(genericUtility.getColumnValue("site_code__mfg",dom)); sitecodemfg=checkNull(genericUtility.getColumnValue("site_code__mfg",dom));
itemcode=genericUtility.getColumnValue("item_code", dom); itemcode=genericUtility.getColumnValue("item_code", dom);
sitecode=genericUtility.getColumnValue("site_code", dom1); sitecode=genericUtility.getColumnValue("site_code", dom1);
//Added By PriyankaC on 19july2019.[Start] //Added By PriyankaC on 19july2019.[Start]
System.out.println("sitecodemfg"+sitecodemfg); System.out.println("sitecodemfg"+sitecodemfg);
if(sitecodemfg != null && sitecodemfg.trim().length() > 0) if(sitecodemfg != null && sitecodemfg.trim().length() > 0)
{ {
...@@ -3146,7 +3146,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -3146,7 +3146,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
} }
//Added By PriyankaC on 19july2019.[END] //Added By PriyankaC on 19july2019.[END]
sql="select supp_sour from siteitem where site_code = ? and item_code = ?"; sql="select supp_sour from siteitem where site_code = ? and item_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,sitecode); pstmt.setString(1,sitecode);
...@@ -4496,7 +4496,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4496,7 +4496,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs.close(); rs.close();
rs = null; rs = null;
//end manish //end manish
//Commented and Added by sarita to set add proj_code and set to header on 29 MARCH 2019 [END] //Commented and Added by sarita to set add proj_code and set to header on 29 MARCH 2019 [END]
valueXmlString.append("<supp_code protect =\"1\">").append("<![CDATA["+suppCode+"]]>").append("</supp_code>"); valueXmlString.append("<supp_code protect =\"1\">").append("<![CDATA["+suppCode+"]]>").append("</supp_code>");
...@@ -4706,7 +4706,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4706,7 +4706,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
if((suppcode != null && suppcode.trim().length() >0) && (sitecode != null && sitecode.trim().length() >0)) if((suppcode != null && suppcode.trim().length() >0) && (sitecode != null && sitecode.trim().length() >0))
{ {
//Added by PriyankaC on 23JULY2019 to get qc_reqd from itemser [START]. //Added by PriyankaC on 23JULY2019 to get qc_reqd from itemser [START].
sql=" select (case when qc_reqd is null then 'N' else qc_reqd end) from site_supplier where site_code = ? and supp_code = ?"; sql=" select (case when qc_reqd is null then 'N' else qc_reqd end) from site_supplier where site_code = ? and supp_code = ?";
pstmt= conn.prepareStatement( sql ); pstmt= conn.prepareStatement( sql );
pstmt.setString( 1,sitecode); pstmt.setString( 1,sitecode);
...@@ -4720,8 +4720,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4720,8 +4720,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(lsqcreqd.trim().length()==0) if(lsqcreqd.trim().length()==0)
{ {
...@@ -4737,7 +4737,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4737,7 +4737,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
if (lsqcreqd == null || lsqcreqd.trim().length() == 0) if (lsqcreqd == null || lsqcreqd.trim().length() == 0)
{ {
...@@ -4753,8 +4753,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -4753,8 +4753,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs=null; rs=null;
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null;
} }
//Added by PriyankaC on 23JULY2019 to get qc_reqd from itemser [END]. //Added by PriyankaC on 23JULY2019 to get qc_reqd from itemser [END].
...@@ -5000,7 +5000,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -5000,7 +5000,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
sql="select porder.curr_code__frt, porder.curr_code__ins ,frt_type,frt_rate,frt_amt," + sql="select porder.curr_code__frt, porder.curr_code__ins ,frt_type,frt_rate,frt_amt," +
"insurance_amt from porder where porder.purc_order = ? "; "insurance_amt from porder where porder.purc_order = ? ";
pstmt= conn.prepareStatement( sql ); pstmt= conn.prepareStatement( sql );
...@@ -5183,7 +5183,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -5183,7 +5183,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
if (lsqcreqd == null || lsqcreqd.trim().length() == 0) if (lsqcreqd == null || lsqcreqd.trim().length() == 0)
{ {
...@@ -5201,7 +5201,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -5201,7 +5201,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
pstmt=null; pstmt=null;
//Added by PriyankaC on 23JULY2019 to get qc_reqd from itemser [END]. //Added by PriyankaC on 23JULY2019 to get qc_reqd from itemser [END].
} }
if (lsqcreqd != null && lsqcreqd.trim().length()>0) if (lsqcreqd != null && lsqcreqd.trim().length()>0)
{ {
...@@ -5217,47 +5217,47 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -5217,47 +5217,47 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
else if (currentColumn.trim().equalsIgnoreCase("curr_code__frt")) else if (currentColumn.trim().equalsIgnoreCase("curr_code__frt"))
{ {
String Effdate1=""; String Effdate1="";
Timestamp effdate=null; Timestamp effdate=null;
String lcadditionalcost1=""; String lcadditionalcost1="";
String lcexchrate1="",lcfreight1="",lcinsurance1="",lcclearing1="",lcother1=""; String lcexchrate1="",lcfreight1="",lcinsurance1="",lcclearing1="",lcother1="";
double acfreight=0,acinsurance=0,acclearing=0,acother=0; double acfreight=0,acinsurance=0,acclearing=0,acother=0;
double exchratefrt=0,exchratefrtins=0,exchratefrtclr=0,exchratetoth=0; double exchratefrt=0,exchratefrtins=0,exchratefrtclr=0,exchratetoth=0;
lscurrcode = genericUtility.getColumnValue( "curr_code__frt", dom ); lscurrcode = genericUtility.getColumnValue( "curr_code__frt", dom );
lssitecode = genericUtility.getColumnValue( "site_code", dom ); lssitecode = genericUtility.getColumnValue( "site_code", dom );
lcfreight1 = checkNull(genericUtility.getColumnValue( "frt_amt", dom )); lcfreight1 = checkNull(genericUtility.getColumnValue( "frt_amt", dom ));
acfreight= (lcfreight1==null || lcfreight1.trim().length() == 0)?0:Double.parseDouble(lcfreight1); acfreight= (lcfreight1==null || lcfreight1.trim().length() == 0)?0:Double.parseDouble(lcfreight1);
lcinsurance1 = checkNull( genericUtility.getColumnValue( "insurance_amt", dom )); lcinsurance1 = checkNull( genericUtility.getColumnValue( "insurance_amt", dom ));
acinsurance=(lcinsurance1==null || lcinsurance1.trim().length() == 0) ?0:Double.parseDouble(lcinsurance1); acinsurance=(lcinsurance1==null || lcinsurance1.trim().length() == 0) ?0:Double.parseDouble(lcinsurance1);
lcclearing1 = checkNull(genericUtility.getColumnValue( "clearing_charges", dom )); lcclearing1 = checkNull(genericUtility.getColumnValue( "clearing_charges", dom ));
acclearing=(lcclearing1==null || lcclearing1.trim().length() == 0)?0:Double.parseDouble(lcclearing1); acclearing=(lcclearing1==null || lcclearing1.trim().length() == 0)?0:Double.parseDouble(lcclearing1);
lcother1 = genericUtility.getColumnValue( "other_charges", dom ); lcother1 = genericUtility.getColumnValue( "other_charges", dom );
acother=(lcother1==null || lcother1.trim().length() == 0)?0:Double.parseDouble(lcother1); acother=(lcother1==null || lcother1.trim().length() == 0)?0:Double.parseDouble(lcother1);
Effdate1 =genericUtility.getColumnValue("eff_date", dom); Effdate1 =genericUtility.getColumnValue("eff_date", dom);
System.out.println("curr_code__frt-->frt_amt["+acfreight+"]"); System.out.println("curr_code__frt-->frt_amt["+acfreight+"]");
System.out.println("curr_code__frt-->insurance_amt["+acinsurance+"]"); System.out.println("curr_code__frt-->insurance_amt["+acinsurance+"]");
System.out.println("curr_code__frt-->clearing_charges["+acclearing+"]"); System.out.println("curr_code__frt-->clearing_charges["+acclearing+"]");
System.out.println("curr_code__frt-->other_charges["+lcother1+"]"); System.out.println("curr_code__frt-->other_charges["+lcother1+"]");
sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ? "; sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lssitecode); pstmt.setString(1, lssitecode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
lscurrcodebase = checkNull(rs.getString(1)); lscurrcodebase = checkNull(rs.getString(1));
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(lscurrcode !=null && lscurrcode.trim().length()>0) if(lscurrcode !=null && lscurrcode.trim().length()>0)
{ {
lcexchrate=fincommon.getDailyExchRateSellBuy(lscurrcode, lscurrcodebase, lssitecode, Effdate1, "B", conn); lcexchrate=fincommon.getDailyExchRateSellBuy(lscurrcode, lscurrcodebase, lssitecode, Effdate1, "B", conn);
valueXmlString.append("<exch_rate__frt protect =\"1\">").append("<![CDATA[" + lcexchrate + "]]>").append("</exch_rate__frt>"); valueXmlString.append("<exch_rate__frt protect =\"1\">").append("<![CDATA[" + lcexchrate + "]]>").append("</exch_rate__frt>");
} }
/* //commented by-monika-29-may-2019 /* //commented by-monika-29-may-2019
String lcexchrate3="",lcexchrate4="",lcexchrate5="",lcexchrate6=""; String lcexchrate3="",lcexchrate4="",lcexchrate5="",lcexchrate6="";
lcexchrate3 = checkNull(genericUtility.getColumnValue( "exch_rate__frt", dom)); lcexchrate3 = checkNull(genericUtility.getColumnValue( "exch_rate__frt", dom));
exchratefrt=(lcexchrate3==null || lcexchrate3.trim().length() == 0) ?0:Double.parseDouble(lcexchrate3); exchratefrt=(lcexchrate3==null || lcexchrate3.trim().length() == 0) ?0:Double.parseDouble(lcexchrate3);
...@@ -5271,59 +5271,59 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -5271,59 +5271,59 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//String lcadditionalcost1= toTalCostAddition(acfreight,acinsurance,acclearing,acother,lcexchrate,exchratefrtins,exchratefrtclr,exchratetoth ,conn); //String lcadditionalcost1= toTalCostAddition(acfreight,acinsurance,acclearing,acother,lcexchrate,exchratefrtins,exchratefrtclr,exchratetoth ,conn);
//changes-made by-Monika-29-may-2019 //changes-made by-Monika-29-may-2019
lcadditionalcost1= toTalCostAddition(dom,conn); lcadditionalcost1= toTalCostAddition(dom,conn);
valueXmlString.append("<total_addl_cost>").append("<![CDATA[" + lcadditionalcost1 + "]]>").append("</total_addl_cost>"); valueXmlString.append("<total_addl_cost>").append("<![CDATA[" + lcadditionalcost1 + "]]>").append("</total_addl_cost>");
} }
else if (currentColumn.trim().equalsIgnoreCase("curr_code__ins")) else if (currentColumn.trim().equalsIgnoreCase("curr_code__ins"))
{ {
String Effdate1="";
Timestamp effdate=null;
String lcadditionalcost1="";
String lcexchrate1="",lcfreight1="",lcinsurance1="",lcclearing1="",lcother1="";
double exchratefrt=0,exchratefrtins=0,exchratefrtclr=0,exchratetoth=0;
double acfreight=0,acinsurance=0,acclearing=0,acother=0;
lscurrcode = genericUtility.getColumnValue( "curr_code__ins", dom );
lssitecode = genericUtility.getColumnValue( "site_code", dom );
Effdate1 =genericUtility.getColumnValue("eff_date", dom);
lcfreight1 = checkNull(genericUtility.getColumnValue( "frt_amt", dom ));
acfreight=(lcfreight1==null || lcfreight1.trim().length() == 0)?0:Double.parseDouble(lcfreight1);
lcinsurance1 = checkNull(genericUtility.getColumnValue( "insurance_amt", dom ));
acinsurance=(lcinsurance1==null || lcinsurance1.trim().length() == 0) ?0:Double.parseDouble(lcinsurance1);
lcclearing1 = checkNull(genericUtility.getColumnValue( "clearing_charges", dom ));
acclearing=(lcclearing1==null || lcclearing1.trim().length() == 0) ?0:Double.parseDouble(lcclearing1); String Effdate1="";
lcother1 = checkNull(genericUtility.getColumnValue( "other_charges", dom )); Timestamp effdate=null;
String lcadditionalcost1="";
String lcexchrate1="",lcfreight1="",lcinsurance1="",lcclearing1="",lcother1="";
double exchratefrt=0,exchratefrtins=0,exchratefrtclr=0,exchratetoth=0;
double acfreight=0,acinsurance=0,acclearing=0,acother=0;
lscurrcode = genericUtility.getColumnValue( "curr_code__ins", dom );
lssitecode = genericUtility.getColumnValue( "site_code", dom );
Effdate1 =genericUtility.getColumnValue("eff_date", dom);
lcfreight1 = checkNull(genericUtility.getColumnValue( "frt_amt", dom ));
acfreight=(lcfreight1==null || lcfreight1.trim().length() == 0)?0:Double.parseDouble(lcfreight1);
lcinsurance1 = checkNull(genericUtility.getColumnValue( "insurance_amt", dom ));
acinsurance=(lcinsurance1==null || lcinsurance1.trim().length() == 0) ?0:Double.parseDouble(lcinsurance1);
lcclearing1 = checkNull(genericUtility.getColumnValue( "clearing_charges", dom ));
if(lcother1 == null || lcother1.trim().length() == 0) acclearing=(lcclearing1==null || lcclearing1.trim().length() == 0) ?0:Double.parseDouble(lcclearing1);
{ lcother1 = checkNull(genericUtility.getColumnValue( "other_charges", dom ));
lcother1 = "0" ;
} if(lcother1 == null || lcother1.trim().length() == 0)
acother=lcother1==null ?0:Double.parseDouble(lcother1); {
System.out.println("curr_code__ins-->frt_amt["+acfreight+"]"); lcother1 = "0" ;
System.out.println("curr_code__ins-->insurance_amt["+acinsurance+"]"); }
System.out.println("curr_code__ins-->clearing_charges["+acclearing+"]"); acother=lcother1==null ?0:Double.parseDouble(lcother1);
System.out.println("curr_code__ins-->other_charges["+lcother1+"]"); System.out.println("curr_code__ins-->frt_amt["+acfreight+"]");
sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ? "; System.out.println("curr_code__ins-->insurance_amt["+acinsurance+"]");
pstmt = conn.prepareStatement(sql); System.out.println("curr_code__ins-->clearing_charges["+acclearing+"]");
pstmt.setString(1, lssitecode); System.out.println("curr_code__ins-->other_charges["+lcother1+"]");
rs = pstmt.executeQuery(); sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ? ";
if (rs.next()) pstmt = conn.prepareStatement(sql);
{ pstmt.setString(1, lssitecode);
lscurrcodebase = checkNull(rs.getString(1)); rs = pstmt.executeQuery();
} if (rs.next())
rs.close(); {
rs = null; lscurrcodebase = checkNull(rs.getString(1));
pstmt.close(); }
pstmt = null; rs.close();
if(lscurrcode !=null && lscurrcode.trim().length()>0) rs = null;
{ pstmt.close();
lcexchrate=fincommon.getDailyExchRateSellBuy(lscurrcode, lscurrcodebase, lssitecode, Effdate1, "B", conn); pstmt = null;
valueXmlString.append("<exch_rate__ins protect =\"1\">").append("<![CDATA[" + lcexchrate + "]]>").append("</exch_rate__ins>"); if(lscurrcode !=null && lscurrcode.trim().length()>0)
} {
//commented by-Monika-29-may-2019 lcexchrate=fincommon.getDailyExchRateSellBuy(lscurrcode, lscurrcodebase, lssitecode, Effdate1, "B", conn);
/* valueXmlString.append("<exch_rate__ins protect =\"1\">").append("<![CDATA[" + lcexchrate + "]]>").append("</exch_rate__ins>");
}
//commented by-Monika-29-may-2019
/*
String lcexchrate3="",lcexchrate4="",lcexchrate5="",lcexchrate6=""; String lcexchrate3="",lcexchrate4="",lcexchrate5="",lcexchrate6="";
lcexchrate3 = checkNull(genericUtility.getColumnValue( "exch_rate__frt", dom)); lcexchrate3 = checkNull(genericUtility.getColumnValue( "exch_rate__frt", dom));
exchratefrt=(lcexchrate3 == null || lcexchrate3.trim().length() == 0) ?0:Double.parseDouble(lcexchrate3); exchratefrt=(lcexchrate3 == null || lcexchrate3.trim().length() == 0) ?0:Double.parseDouble(lcexchrate3);
...@@ -5339,54 +5339,54 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -5339,54 +5339,54 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//String lcadditionalcost1= toTalCostAddition(acfreight,acinsurance,acclearing,acother,lcexchrate,exchratefrtins,exchratefrtclr,exchratetoth ,conn); //String lcadditionalcost1= toTalCostAddition(acfreight,acinsurance,acclearing,acother,lcexchrate,exchratefrtins,exchratefrtclr,exchratetoth ,conn);
//changes-made by-Monika-29-may-2019 //changes-made by-Monika-29-may-2019
lcadditionalcost1= toTalCostAddition(dom,conn); lcadditionalcost1= toTalCostAddition(dom,conn);
System.out.println("curr_code__ins-->total_addl_cost["+lcadditionalcost1+"]"); System.out.println("curr_code__ins-->total_addl_cost["+lcadditionalcost1+"]");
valueXmlString.append("<total_addl_cost>").append("<![CDATA[" + lcadditionalcost1 + "]]>").append("</total_addl_cost>"); valueXmlString.append("<total_addl_cost>").append("<![CDATA[" + lcadditionalcost1 + "]]>").append("</total_addl_cost>");
} }
else if (currentColumn.trim().equalsIgnoreCase("curr_code__othch")) else if (currentColumn.trim().equalsIgnoreCase("curr_code__othch"))
{ {
String Effdate1=""; String Effdate1="";
Timestamp effdate=null; Timestamp effdate=null;
String lcadditionalcost1=""; String lcadditionalcost1="";
String lcexchrate1="",lcfreight1="",lcinsurance1="",lcclearing1="",lcother1=""; String lcexchrate1="",lcfreight1="",lcinsurance1="",lcclearing1="",lcother1="";
double acfreight=0,acinsurance=0,acclearing=0,acother=0; double acfreight=0,acinsurance=0,acclearing=0,acother=0;
double exchratefrt=0,exchratefrtins=0,exchratefrtclr=0,exchratetoth=0; double exchratefrt=0,exchratefrtins=0,exchratefrtclr=0,exchratetoth=0;
lscurrcode = genericUtility.getColumnValue( "curr_code__othch", dom ); lscurrcode = genericUtility.getColumnValue( "curr_code__othch", dom );
lssitecode = genericUtility.getColumnValue( "site_code", dom ); lssitecode = genericUtility.getColumnValue( "site_code", dom );
Effdate1 = checkNull(genericUtility.getColumnValue("eff_date", dom)); Effdate1 = checkNull(genericUtility.getColumnValue("eff_date", dom));
lcfreight1 = checkNull(genericUtility.getColumnValue( "frt_amt", dom )); lcfreight1 = checkNull(genericUtility.getColumnValue( "frt_amt", dom ));
acfreight= (lcfreight1==null || lcfreight1.trim().length() == 0)?0:Double.parseDouble(lcfreight1); acfreight= (lcfreight1==null || lcfreight1.trim().length() == 0)?0:Double.parseDouble(lcfreight1);
lcinsurance1 = checkNull( genericUtility.getColumnValue( "insurance_amt", dom )); lcinsurance1 = checkNull( genericUtility.getColumnValue( "insurance_amt", dom ));
acinsurance=(lcinsurance1==null || lcinsurance1.trim().length() == 0)?0:Double.parseDouble(lcinsurance1); acinsurance=(lcinsurance1==null || lcinsurance1.trim().length() == 0)?0:Double.parseDouble(lcinsurance1);
lcclearing1 = checkNull( genericUtility.getColumnValue( "clearing_charges", dom )); lcclearing1 = checkNull( genericUtility.getColumnValue( "clearing_charges", dom ));
acclearing=lcclearing1==null ?0:Double.parseDouble(lcclearing1); acclearing=lcclearing1==null ?0:Double.parseDouble(lcclearing1);
lcother1 = checkNull( genericUtility.getColumnValue( "other_charges", dom )); lcother1 = checkNull( genericUtility.getColumnValue( "other_charges", dom ));
acother=(lcother1==null || lcother1.trim().length() == 0) ?0:Double.parseDouble(lcother1); acother=(lcother1==null || lcother1.trim().length() == 0) ?0:Double.parseDouble(lcother1);
System.out.println("curr_code__othch-->frt_amt["+acfreight+"]"); System.out.println("curr_code__othch-->frt_amt["+acfreight+"]");
System.out.println("curr_code__othch-->insurance_amt["+acinsurance+"]"); System.out.println("curr_code__othch-->insurance_amt["+acinsurance+"]");
System.out.println("curr_code__othch-->clearing_charges["+acclearing+"]"); System.out.println("curr_code__othch-->clearing_charges["+acclearing+"]");
System.out.println("curr_code__othch-->other_charges["+lcother1+"]"); System.out.println("curr_code__othch-->other_charges["+lcother1+"]");
sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ? "; sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lssitecode); pstmt.setString(1, lssitecode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
lscurrcodebase = checkNull(rs.getString(1)); lscurrcodebase = checkNull(rs.getString(1));
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(lscurrcode !=null && lscurrcode.trim().length()>0) if(lscurrcode !=null && lscurrcode.trim().length()>0)
{ {
lcexchrate=fincommon.getDailyExchRateSellBuy(lscurrcode, lscurrcodebase, lssitecode, Effdate1, "B", conn); lcexchrate=fincommon.getDailyExchRateSellBuy(lscurrcode, lscurrcodebase, lssitecode, Effdate1, "B", conn);
valueXmlString.append("<exch_rate__othch protect =\"1\">").append("<![CDATA[" + lcexchrate + "]]>").append("</exch_rate__othch>"); valueXmlString.append("<exch_rate__othch protect =\"1\">").append("<![CDATA[" + lcexchrate + "]]>").append("</exch_rate__othch>");
} }
/*commented by-monika-on-29-may-2019 /*commented by-monika-on-29-may-2019
String lcexchrate3="",lcexchrate4="",lcexchrate5="",lcexchrate6=""; String lcexchrate3="",lcexchrate4="",lcexchrate5="",lcexchrate6="";
lcexchrate3 = checkNull(genericUtility.getColumnValue( "exch_rate__frt", dom)); lcexchrate3 = checkNull(genericUtility.getColumnValue( "exch_rate__frt", dom));
exchratefrt=(lcexchrate3==null || lcexchrate3.trim().length() == 0)?0:Double.parseDouble(lcexchrate3); exchratefrt=(lcexchrate3==null || lcexchrate3.trim().length() == 0)?0:Double.parseDouble(lcexchrate3);
...@@ -5399,55 +5399,55 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -5399,55 +5399,55 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
lcexchrate6 = checkNull(genericUtility.getColumnValue( "exch_rate__othch", dom )); lcexchrate6 = checkNull(genericUtility.getColumnValue( "exch_rate__othch", dom ));
exchratetoth=(lcexchrate4==null || lcexchrate6.trim().length() == 0)?0:Double.parseDouble(lcexchrate6); exchratetoth=(lcexchrate4==null || lcexchrate6.trim().length() == 0)?0:Double.parseDouble(lcexchrate6);
lcadditionalcost1= toTalCostAddition(dom,dom1,dom2,xtraParams,conn);*/ lcadditionalcost1= toTalCostAddition(dom,dom1,dom2,xtraParams,conn);*/
lcadditionalcost1= toTalCostAddition(dom,conn); lcadditionalcost1= toTalCostAddition(dom,conn);
System.out.println("curr_code__ins-->total_addl_cost["+lcadditionalcost1+"]"); System.out.println("curr_code__ins-->total_addl_cost["+lcadditionalcost1+"]");
valueXmlString.append("<total_addl_cost>").append("<![CDATA[" + lcadditionalcost1 + "]]>").append("</total_addl_cost>"); valueXmlString.append("<total_addl_cost>").append("<![CDATA[" + lcadditionalcost1 + "]]>").append("</total_addl_cost>");
} }
else if (currentColumn.trim().equalsIgnoreCase("curr_code__clr")) else if (currentColumn.trim().equalsIgnoreCase("curr_code__clr"))
{ {
String Effdate1=""; String Effdate1="";
Timestamp effdate=null; Timestamp effdate=null;
String lcadditionalcost1=""; String lcadditionalcost1="";
String lcexchrate1="",lcfreight1="",lcinsurance1="",lcclearing1="",lcother1=""; String lcexchrate1="",lcfreight1="",lcinsurance1="",lcclearing1="",lcother1="";
double acfreight=0,acinsurance=0,acclearing=0,acother=0; double acfreight=0,acinsurance=0,acclearing=0,acother=0;
double exchratefrt=0,exchratefrtins=0,exchratefrtclr=0,exchratetoth=0; double exchratefrt=0,exchratefrtins=0,exchratefrtclr=0,exchratetoth=0;
lscurrcode =genericUtility.getColumnValue( "curr_code__clr", dom ); lscurrcode =genericUtility.getColumnValue( "curr_code__clr", dom );
lssitecode =genericUtility.getColumnValue( "site_code", dom ); lssitecode =genericUtility.getColumnValue( "site_code", dom );
Effdate1 =genericUtility.getColumnValue("eff_date", dom); Effdate1 =genericUtility.getColumnValue("eff_date", dom);
lcfreight1 = checkNull( genericUtility.getColumnValue( "frt_amt", dom )); lcfreight1 = checkNull( genericUtility.getColumnValue( "frt_amt", dom ));
acfreight=(lcfreight1==null || lcfreight1.trim().length() == 0) ?0:Double.parseDouble(lcfreight1); acfreight=(lcfreight1==null || lcfreight1.trim().length() == 0) ?0:Double.parseDouble(lcfreight1);
lcinsurance1 = checkNull(genericUtility.getColumnValue( "insurance_amt", dom )); lcinsurance1 = checkNull(genericUtility.getColumnValue( "insurance_amt", dom ));
acinsurance=(lcinsurance1==null || lcinsurance1.trim().length() == 0) ?0:Double.parseDouble(lcinsurance1); acinsurance=(lcinsurance1==null || lcinsurance1.trim().length() == 0) ?0:Double.parseDouble(lcinsurance1);
lcclearing1 = checkNull(genericUtility.getColumnValue( "clearing_charges", dom )); lcclearing1 = checkNull(genericUtility.getColumnValue( "clearing_charges", dom ));
acclearing=(lcclearing1==null || lcclearing1.trim().length() == 0) ?0:Double.parseDouble(lcclearing1); acclearing=(lcclearing1==null || lcclearing1.trim().length() == 0) ?0:Double.parseDouble(lcclearing1);
lcother1 = checkNull(genericUtility.getColumnValue( "other_charges", dom )); lcother1 = checkNull(genericUtility.getColumnValue( "other_charges", dom ));
acother=(lcother1==null || lcother1.trim().length() == 0)?0:Double.parseDouble(lcother1); acother=(lcother1==null || lcother1.trim().length() == 0)?0:Double.parseDouble(lcother1);
System.out.println("curr_code__clr-->frt_amt["+acfreight+"]"); System.out.println("curr_code__clr-->frt_amt["+acfreight+"]");
System.out.println("curr_code__clr-->insurance_amt["+acinsurance+"]"); System.out.println("curr_code__clr-->insurance_amt["+acinsurance+"]");
System.out.println("curr_code__clr-->clearing_charges["+acclearing+"]"); System.out.println("curr_code__clr-->clearing_charges["+acclearing+"]");
System.out.println("curr_code__clr-->other_charges["+lcother1+"]"); System.out.println("curr_code__clr-->other_charges["+lcother1+"]");
effdate = Timestamp.valueOf(genericUtility.getValidDateString(Effdate1.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+ " 00:00:00.0"); effdate = Timestamp.valueOf(genericUtility.getValidDateString(Effdate1.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+ " 00:00:00.0");
sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ? "; sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lssitecode); pstmt.setString(1, lssitecode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) { if (rs.next()) {
lscurrcodebase = checkNull(rs.getString(1)); lscurrcodebase = checkNull(rs.getString(1));
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(lscurrcode !=null && lscurrcode.trim().length()>0) if(lscurrcode !=null && lscurrcode.trim().length()>0)
{ {
lcexchrate=fincommon.getDailyExchRateSellBuy(lscurrcode, lscurrcodebase, lssitecode, Effdate1, "B", conn); lcexchrate=fincommon.getDailyExchRateSellBuy(lscurrcode, lscurrcodebase, lssitecode, Effdate1, "B", conn);
valueXmlString.append("<exch_rate__clr protect =\"1\">").append("<![CDATA[" + lcexchrate + "]]>").append("</exch_rate__clr>"); valueXmlString.append("<exch_rate__clr protect =\"1\">").append("<![CDATA[" + lcexchrate + "]]>").append("</exch_rate__clr>");
} }
/* commented-by-Monika-29-may-2019 /* commented-by-Monika-29-may-2019
String lcexchrate3="",lcexchrate4="",lcexchrate5="",lcexchrate6=""; String lcexchrate3="",lcexchrate4="",lcexchrate5="",lcexchrate6="";
lcexchrate3 = checkNull(genericUtility.getColumnValue( "exch_rate__frt", dom)); lcexchrate3 = checkNull(genericUtility.getColumnValue( "exch_rate__frt", dom));
...@@ -5995,7 +5995,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -5995,7 +5995,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
exchratetoth=lcexchrate4==null ?0:Double.parseDouble(lcexchrate6);*/ exchratetoth=lcexchrate4==null ?0:Double.parseDouble(lcexchrate6);*/
//lcadditionalcost1= toTalCostAddition(acfreight,acinsurance,acclearing,acother,exchratefrt,exchratefrtins,lcexchrate,exchratetoth ,conn); //lcadditionalcost1= toTalCostAddition(acfreight,acinsurance,acclearing,acother,exchratefrt,exchratefrtins,lcexchrate,exchratetoth ,conn);
//changes-made-by-Monika-29-05-2019 //changes-made-by-Monika-29-05-2019
String lcadditionalcost1=toTalCostAddition(dom,conn);//end String lcadditionalcost1=toTalCostAddition(dom,conn);//end
System.out.println("curr_code__ins-->total_addl_cost["+lcadditionalcost1+"]"); System.out.println("curr_code__ins-->total_addl_cost["+lcadditionalcost1+"]");
valueXmlString.append("<total_addl_cost>").append("<![CDATA[" + lcadditionalcost1 + "]]>").append("</total_addl_cost>"); valueXmlString.append("<total_addl_cost>").append("<![CDATA[" + lcadditionalcost1 + "]]>").append("</total_addl_cost>");
...@@ -6555,8 +6555,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -6555,8 +6555,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
valueXmlString.append("<qc_reqd protect =\"1\">").append("<![CDATA["+lsqcreqd+"]]>").append("</qc_reqd>"); valueXmlString.append("<qc_reqd protect =\"1\">").append("<![CDATA["+lsqcreqd+"]]>").append("</qc_reqd>");
valueXmlString.append("<exch_rate protect =\"1\">").append("<![CDATA["+exchrate+"]]>").append("</exch_rate>"); valueXmlString.append("<exch_rate protect =\"1\">").append("<![CDATA["+exchrate+"]]>").append("</exch_rate>");
valueXmlString.append("<exch_rate__frt protect =\"1\">").append("<![CDATA["+exchRateFrt+"]]>").append("</exch_rate__frt>"); valueXmlString.append("<exch_rate__frt protect =\"1\">").append("<![CDATA["+exchRateFrt+"]]>").append("</exch_rate__frt>");
// valueXmlString.append("<purc_order protect =\"1\">").append("<![CDATA["+lspurcorder+"]]>").append("</purc_order>"); //commented by manish mhatre on 13-aug-2019 // valueXmlString.append("<purc_order protect =\"1\">").append("<![CDATA["+lspurcorder+"]]>").append("</purc_order>"); //commented by manish mhatre on 13-aug-2019
//added by manish mhatre on 13-aug-2019 [For protect purchase order when flag==true] //added by manish mhatre on 13-aug-2019 [For protect purchase order when flag==true]
//start manish //start manish
if(PoLineItemFlag==true) if(PoLineItemFlag==true)
...@@ -6607,7 +6607,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -6607,7 +6607,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
mpord=mpord.trim(); mpord=mpord.trim();
System.out.println("PO Trim itm_default "+mpord.length()); System.out.println("PO Trim itm_default "+mpord.length());
System.out.println("Purch Order is "+mpord); System.out.println("Purch Order is "+mpord);
valueXmlString.append("<purc_order>").append("<![CDATA["+mpord+ "]]>").append("</purc_order>"); valueXmlString.append("<purc_order>").append("<![CDATA["+mpord+ "]]>").append("</purc_order>");
String lsgatereg=""; String lsgatereg="";
lsvarvalue = disscommon.getDisparams("999999", "RCPT_SCHEDULE", conn); lsvarvalue = disscommon.getDisparams("999999", "RCPT_SCHEDULE", conn);
System.out.println("lsvarvalue"+lsvarvalue); System.out.println("lsvarvalue"+lsvarvalue);
...@@ -7438,7 +7438,13 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -7438,7 +7438,13 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
valueXmlString.append("<retest_date >").append("<![CDATA[" + TestExpDate1 + "]]>").append("</retest_date>"); valueXmlString.append("<retest_date >").append("<![CDATA[" + TestExpDate1 + "]]>").append("</retest_date>");
} }
}//Added by Anagha Rane 25-02-2020 Start>> To set expiry date null
else if("N".equalsIgnoreCase(lstrackshelflife))
{
valueXmlString.append("<expiry_date protect =\"1\">").append("<![CDATA[]]>").append("</expiry_date>");
System.out.println("Setting Expiry date Null");
} }
//Added by Anagha Rane 25-02-2020 End
String lcrate1="",lspricelistclg="",lcqty1="",ldttrandate1=""; String lcrate1="",lspricelistclg="",lcqty1="",ldttrandate1="";
lcrate1 = checkNull(genericUtility.getColumnValue( "rate", dom )); lcrate1 = checkNull(genericUtility.getColumnValue( "rate", dom ));
//Commented by Ajay on 25/04/18:START //Commented by Ajay on 25/04/18:START
...@@ -9727,7 +9733,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -9727,7 +9733,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
} }
String ldtmfgdate1="",ldtexpirydate1="",ldtretestdate1="",lspricelistclg=""; String ldtmfgdate1="",ldtexpirydate1="",ldtretestdate1="",lspricelistclg="";
//added by manish mhatre on 21-aug-2019 [For Expiry and mfg date pick up in item_lot_info table] //added by manish mhatre on 21-aug-2019 [For Expiry and mfg date pick up in item_lot_info table]
//start manish //start manish
sql="select mfg_date, exp_date, retest_date from item_lot_info where item_code = ? and lot_no = ? "; sql="select mfg_date, exp_date, retest_date from item_lot_info where item_code = ? and lot_no = ? ";
...@@ -9740,7 +9746,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -9740,7 +9746,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
mfgDate = rs.getTimestamp(1); mfgDate = rs.getTimestamp(1);
expDate =rs.getTimestamp(2); expDate =rs.getTimestamp(2);
retestDate = rs.getTimestamp(3); retestDate = rs.getTimestamp(3);
if( mfgDate != null ){ if( mfgDate != null ){
ldtmfgdate1 = sdf.format(mfgDate); ldtmfgdate1 = sdf.format(mfgDate);
System.out.println("ldtmfgdate1"+ldtmfgdate1); System.out.println("ldtmfgdate1"+ldtmfgdate1);
...@@ -9797,7 +9803,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -9797,7 +9803,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//if(ldtmfgdate1.trim().length() >0) //if(ldtmfgdate1.trim().length() >0)
//{ //{
//valueXmlString.append("<mfg_date protect =\"1\">").append("<![CDATA[" + ldtmfgdate1 + "]]>").append("</mfg_date>"); //valueXmlString.append("<mfg_date protect =\"1\">").append("<![CDATA[" + ldtmfgdate1 + "]]>").append("</mfg_date>");
//} //commented by manish mhatre on 21-aug-2019 //} //commented by manish mhatre on 21-aug-2019
if(expDate != null) if(expDate != null)
{ {
...@@ -9808,7 +9814,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -9808,7 +9814,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//if(ldtexpirydate1.trim().length() >0) //if(ldtexpirydate1.trim().length() >0)
//{ //{
//valueXmlString.append("<expiry_date protect =\"1\">").append("<![CDATA[" + ldtexpirydate1 + "]]>").append("</expiry_date>"); //valueXmlString.append("<expiry_date protect =\"1\">").append("<![CDATA[" + ldtexpirydate1 + "]]>").append("</expiry_date>");
//} //commented by manish mhatre on 21-aug-2019 //} //commented by manish mhatre on 21-aug-2019
if(retestDate != null) if(retestDate != null)
{ {
...@@ -9818,19 +9824,19 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -9818,19 +9824,19 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
//if(ldtretestdate1.trim().length() >0) //if(ldtretestdate1.trim().length() >0)
//{ //{
//valueXmlString.append("<retest_date protect =\"1\">").append("<![CDATA[" + ldtretestdate1 + "]]>").append("</retest_date>"); //valueXmlString.append("<retest_date protect =\"1\">").append("<![CDATA[" + ldtretestdate1 + "]]>").append("</retest_date>");
//} //commented by manish mhatre on 21-aug-2019 //} //commented by manish mhatre on 21-aug-2019
} }
if(rs != null) { if(rs != null) {
rs.close(); rs.close();
rs = null;} rs = null;}
if(pstmt != null) { if(pstmt != null) {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
lstrantype = genericUtility.getColumnValue( "tran_type", dom1 ); lstrantype = genericUtility.getColumnValue( "tran_type", dom1 );
lcrateclg1 = genericUtility.getColumnValue( "rate__clg", dom ); lcrateclg1 = genericUtility.getColumnValue( "rate__clg", dom );
lcrateclg= (lcrateclg1==null || lcrateclg1.trim().length() == 0) ? 0 : Double.parseDouble(lcrateclg1); lcrateclg= (lcrateclg1==null || lcrateclg1.trim().length() == 0) ? 0 : Double.parseDouble(lcrateclg1);
...@@ -9934,12 +9940,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -9934,12 +9940,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
double mCapacity=0d; double mCapacity=0d;
System.out.println("Pavan Rane DOM[ "+genericUtility.serializeDom(dom)+"]\n\n\n"); System.out.println("Pavan Rane DOM[ "+genericUtility.serializeDom(dom)+"]\n\n\n");
System.out.println("Quantity["+lcqty+"]ItemCode["+mitem+"]mlotno["+mlotno+"]lspack["+lspack+"]"); System.out.println("Quantity["+lcqty+"]ItemCode["+mitem+"]mlotno["+mlotno+"]lspack["+lspack+"]");
sql = "select (case when shipper_size is null then 0 else shipper_size end) as shipper_size, " sql = "select (case when shipper_size is null then 0 else shipper_size end) as shipper_size, "
+ "(case when gross_weight is null then 0 else gross_weight end) as lc_gross_weigth, " + "(case when gross_weight is null then 0 else gross_weight end) as lc_gross_weigth, "
+ "(case when net_weight is null then 0 else net_weight end) as lc_net_weight " + "(case when net_weight is null then 0 else net_weight end) as lc_net_weight "
+ "from item_lot_packsize where item_code = ? " + "from item_lot_packsize where item_code = ? "
+ "and ? >= lot_no__from and ? <= lot_no__to"; + "and ? >= lot_no__from and ? <= lot_no__to";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, mitem); pstmt.setString(1, mitem);
pstmt.setString(2, mlotno); pstmt.setString(2, mlotno);
...@@ -9990,19 +9996,19 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -9990,19 +9996,19 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
if( rs.next()) if( rs.next())
{ {
mCapacity= rs.getDouble("capacity"); mCapacity= rs.getDouble("capacity");
System.out.println("Capacity::["+mCapacity+"]"); System.out.println("Capacity::["+mCapacity+"]");
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null;
} }
if((lspack!=null && lspack.trim().length()>0) && (mCapacity > 0)) if((lspack!=null && lspack.trim().length()>0) && (mCapacity > 0))
{ {
double mod = lcqty/mCapacity; double mod = lcqty/mCapacity;
mNoart = getRndamt(mod, "X", 1); mNoart = getRndamt(mod, "X", 1);
System.out.println("Pavan R mNoart["+mNoart+"]"); System.out.println("Pavan R mNoart["+mNoart+"]");
valueXmlString.append("<no_art ><![CDATA[").append(mNoart).append("]]></no_art>\r\n"); valueXmlString.append("<no_art ><![CDATA[").append(mNoart).append("]]></no_art>\r\n");
if(( mNoart > 0)) if(( mNoart > 0))
{ {
...@@ -10013,9 +10019,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -10013,9 +10019,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if( rs.next()) if( rs.next())
{ {
grossWeight= checkNull(rs.getString("LC_GROSS_WEIGTH")); grossWeight= checkNull(rs.getString("LC_GROSS_WEIGTH"));
netWeight= checkNull(rs.getString("LC_NET_WEIGHT")); netWeight= checkNull(rs.getString("LC_NET_WEIGHT"));
System.out.println("Pavan Rane grossWeight ["+grossWeight+"]netWeight["+netWeight+"]"); System.out.println("Pavan Rane grossWeight ["+grossWeight+"]netWeight["+netWeight+"]");
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -10029,10 +10035,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -10029,10 +10035,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{ {
mNetWeight=Double.parseDouble(netWeight); mNetWeight=Double.parseDouble(netWeight);
} }
mGrosswt = ((mGrossWeight/mCapacity) * lcqty); mGrosswt = ((mGrossWeight/mCapacity) * lcqty);
mNetWt = ((mNetWeight/mCapacity) * lcqty); mNetWt = ((mNetWeight/mCapacity) * lcqty);
//mGrosswt= mNoart * mGrossWeight; //mGrosswt= mNoart * mGrossWeight;
System.out.println("Pavan Rane total mGrosswt["+mGrosswt+"] mGrossWeight["+mGrossWeight+"]"); System.out.println("Pavan Rane total mGrosswt["+mGrosswt+"] mGrossWeight["+mGrossWeight+"]");
if(mGrossWeight > 0) if(mGrossWeight > 0)
...@@ -10052,15 +10058,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -10052,15 +10058,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if( rs.next()) if( rs.next())
{ {
netWtItem= checkNull(rs.getString("NET_WT_ITEM")); netWtItem= checkNull(rs.getString("NET_WT_ITEM"));
integrlQty= checkNull(rs.getString("INTEGRAL_QTY")); integrlQty= checkNull(rs.getString("INTEGRAL_QTY"));
System.out.println("Pavan Rane else netWtItem["+netWtItem+"] integrlQty["+integrlQty+"]"); System.out.println("Pavan Rane else netWtItem["+netWtItem+"] integrlQty["+integrlQty+"]");
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null;
sql="SELECT (CASE WHEN NET_WEIGHT IS NULL THEN 0 ELSE NET_WEIGHT END) AS NET_WT FROM ITEM_LOT_PACKSIZE WHERE ITEM_CODE = ? AND ? BETWEEN LOT_NO__FROM AND LOT_NO__TO "; sql="SELECT (CASE WHEN NET_WEIGHT IS NULL THEN 0 ELSE NET_WEIGHT END) AS NET_WT FROM ITEM_LOT_PACKSIZE WHERE ITEM_CODE = ? AND ? BETWEEN LOT_NO__FROM AND LOT_NO__TO ";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1,mitem); pstmt.setString(1,mitem);
...@@ -10069,14 +10075,14 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -10069,14 +10075,14 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
if( rs.next()) if( rs.next())
{ {
netWt= checkNull(rs.getString("NET_WT")); netWt= checkNull(rs.getString("NET_WT"));
System.out.println("Pavan Rane netWt["+netWt+"]"); System.out.println("Pavan Rane netWt["+netWt+"]");
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null;
if(netWtItem.trim().length() > 0) if(netWtItem.trim().length() > 0)
{ {
mNetWtItem=Double.parseDouble(netWtItem); mNetWtItem=Double.parseDouble(netWtItem);
...@@ -10089,15 +10095,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -10089,15 +10095,15 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{ {
mIntegrlQty=Double.parseDouble(integrlQty); mIntegrlQty=Double.parseDouble(integrlQty);
} }
if(mNetWt==0) if(mNetWt==0)
{ {
mNetWt=mNetWtItem; mNetWt=mNetWtItem;
} }
if(mNetWt==0) if(mNetWt==0)
{ {
} }
else else
{ {
...@@ -10111,8 +10117,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -10111,8 +10117,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if( rs.next()) if( rs.next())
{ {
lcMode= checkNull(rs.getString("LC_MODE")); lcMode= checkNull(rs.getString("LC_MODE"));
System.out.println("intered in rs item descr hhho.."+lcMode); System.out.println("intered in rs item descr hhho.."+lcMode);
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -11647,7 +11653,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -11647,7 +11653,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//Pavan Rane 11jun19 start [to validate Channel Partner Supplier] //Pavan Rane 11jun19 start [to validate Channel Partner Supplier]
private boolean isChannelPartnerSupp(String suppCode, String siteCode, Connection conn) throws ITMException private boolean isChannelPartnerSupp(String suppCode, String siteCode, Connection conn) throws ITMException
{ {
String sql = ""; String sql = "";
String disLink = ""; String disLink = "";
String chPartner = ""; String chPartner = "";
...@@ -11695,7 +11701,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -11695,7 +11701,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
cpFlag = true; cpFlag = true;
} }
} }
} catch (SQLException se) } catch (SQLException se)
{ {
BaseLogger.log("0", null, null, "SQLException :PoReceiptIc :isChannelPartnerSupp()::" + se.getMessage()); BaseLogger.log("0", null, null, "SQLException :PoReceiptIc :isChannelPartnerSupp()::" + se.getMessage());
...@@ -11744,7 +11750,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -11744,7 +11750,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
return newQty; return newQty;
} }
if (round.trim().equals("X")) { if (round.trim().equals("X")) {
if(newQty == (newQty - (newQty % roundTo))) if(newQty == (newQty - (newQty % roundTo)))
{ {
return newQty; return newQty;
...@@ -11771,7 +11777,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -11771,7 +11777,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
return newQty; return newQty;
} catch (Exception e) { } catch (Exception e) {
System.out.println("Exception :Conversion Qty ::" + e.getMessage() System.out.println("Exception :Conversion Qty ::" + e.getMessage()
+ ":"); + ":");
} }
if (roundTo == 1) { if (roundTo == 1) {
......
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