Commit 1af12406 authored by kshinde's avatar kshinde

Invoice Cancel Sales return confirm testing and bug fix.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196722 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6e4f1dbd
......@@ -49,6 +49,7 @@ import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
@Stateless
public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnConfLocal, SalesReturnConfRemote
......@@ -494,8 +495,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
else
{
System.out.println("Committed Transaction.............");
conn.commit();//For test only
//conn.rollback();
//conn.commit();//For test only
}
if (conn != null)
......@@ -705,7 +705,6 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
return errorString;
}
}
}
System.out.println("---------- ll_line_no__invtrace ---------------"+ll_line_no__invtrace);
if(ll_line_no__invtrace == 0)
......@@ -848,6 +847,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
errorString = itmDBAccessLocal.getErrorString("",merrcode,"","",conn);
return errorString;
}
}
sql = "select restr_days from sreturn_reason where reason_code = ? ";
pstmt = conn.prepareStatement(sql);
......@@ -2869,10 +2869,10 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
}
}
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"user_id");
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
String XMLString = "<?xml version=\"1.0\"?>\r\n<Root>\r\n<header>"+
"\r\n</header><Detail1><site_code>"+qcOrd.get("site_code").toString()+"</site_code><qorder_type>"+qcOrd.get("qorder_type").toString()+"</qorder_type>"+
" <qorder_date>"+new java.sql.Date(System.currentTimeMillis())+"</qorder_date><lot_no>"+qcOrd.get("lot_no").toString()+"</lot_no><item_ser>"+ls_item_ser+"</item_ser></Detail1></Root>";
"\r\n</header><Detail1><test></test><site_code>"+qcOrd.get("site_code").toString()+"</site_code><qorder_type>"+qcOrd.get("qorder_type").toString()+"</qorder_type>"+
" <qorder_date>"+currDateStr+"</qorder_date><lot_no>"+qcOrd.get("lot_no").toString()+"</lot_no><item_ser>"+ls_item_ser+"</item_ser></Detail1></Root>";
TransIDGenerator tg = new TransIDGenerator(XMLString, userId, "");
ls_qcno = tg.generateTranSeqID(tranSer, keyCol, ls_key, conn);
......@@ -3126,7 +3126,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
String lc_old_amount = "", lc_old_amount_bc = "", lc_dprice_item = "", chgUser = "", chgTerm = "", transer = "", remarks = "", sql = "", keyCol = "", tranSer = "";
double lc_rate__clg = 0, lc_qty_stduom = 0, lc_rate_stduom = 0, lc_discount = 0, lc_amt = 0, lc_drcr_amt = 0, lc_net_amt = 0, lc_tax_amt = 0;
Timestamp ld_eff_date = null, ld_due_date = null,ld_gp_date = null;
String ls_rndstr = "", ls_rndTo = "", ls_rndoff = "", ls_ret_ref = "", ls_site_type = "", ls_creat_inv_othlist = "", ls_creat_inv_oth = "", ls_other_site = "";
String ls_rndstr = "", ls_rndTo = "", ls_rndoff = "", ls_ret_ref = "", ls_site_type = "", ls_creat_inv_othlist = "", ls_creat_inv_oth = "", ls_other_site = "",drNtTranId="";
PreparedStatement pstmt = null;
PreparedStatement pstmt1 = null;
......@@ -3134,12 +3134,14 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
ValidatorEJB vdt=new ValidatorEJB();
DistCommon distCommon = new DistCommon();
//FinCommon finCommon = new FinCommon();
StringBuffer xmlBuff = null;
Timestamp currDate = null;
UtilMethods utilMethods = UtilMethods.getInstance();
boolean lb_flag;
int currRow = 0; //Added by wasim
try
{
xmlBuff= new StringBuffer();
currDate = new java.sql.Timestamp(System.currentTimeMillis());
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
......@@ -3156,7 +3158,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
ls_drcr_flag = "D";
transer = "DRNRCP";
ls_tranwin = "W_DRCRRCP_DR";
ls_auto_tran_id = generateTranId("w_drcrrcp_dr",as_site_code,currDateStr,conn);
ls_auto_tran_id = generateTranId("w_drcrrcp_dr",as_site_code,ls_drcr_flag,currDateStr,conn);
remarks = "Auto Generated Debit Note for Sales Return " + ls_tran_id;
}
else
......@@ -3164,7 +3166,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
ls_drcr_flag = "C";
transer = "CRNRCP";
ls_tranwin = "W_DRCRRCP_CR";
ls_auto_tran_id = generateTranId("w_drcrrcp_cr",as_site_code,currDateStr,conn);
ls_auto_tran_id = generateTranId("w_drcrrcp_cr",as_site_code,ls_drcr_flag,currDateStr,conn);
remarks = "Auto Generated Credit Note for Sales Return " + ls_tran_id;
}
......@@ -3526,11 +3528,74 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setString( 32, ls_ret_ref );
pstmt1.setString( 33, "N" );
int cnt=pstmt1.executeUpdate();
//int cnt=pstmt1.executeUpdate();
if(pstmt1 != null)
{
pstmt1.close();pstmt1 = null;
}
xmlBuff.append("<?xml version='1.0' encoding='ISO-8859-1'?><DocumentRoot>");
xmlBuff.append("<description>Datawindow Root</description>");
xmlBuff.append("<group0>");
xmlBuff.append("<description>Group0 description</description>");
xmlBuff.append("<Header0>");
xmlBuff.append("<objName><![CDATA[").append("drcrrcp_cr").append("]]></objName>");
xmlBuff.append("<pageContext><![CDATA[").append("1").append("]]></pageContext>");
xmlBuff.append("<objContext><![CDATA[").append("1").append("]]></objContext>");
xmlBuff.append("<editFlag><![CDATA[").append("A").append("]]></editFlag>");
xmlBuff.append("<focusedColumn><![CDATA[").append("").append("]]></focusedColumn>");
xmlBuff.append("<action><![CDATA[").append("SAVE").append("]]></action>");
xmlBuff.append("<elementName><![CDATA[").append("").append("]]></elementName>");
xmlBuff.append("<keyValue><![CDATA[").append("1").append("]]></keyValue>");
xmlBuff.append("<taxKeyValue><![CDATA[").append("").append("]]></taxKeyValue>");
xmlBuff.append("<saveLevel><![CDATA[").append("1").append("]]></saveLevel>");
xmlBuff.append("<forcedSave><![CDATA[").append(true).append("]]></forcedSave>");
xmlBuff.append("<taxInFocus><![CDATA[").append(false).append("]]></taxInFocus>");
xmlBuff.append("<description>Header0 members</description>");
xmlBuff.append("<Detail1 dbID=\"\" domID=\"1\" objContext=\"1\" objName=\"drcrrcp_cr\">");
xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" status=\"N\" updateFlag=\"A\"/>");
//xmlBuff.append("<drcrrcp_cr/>");
xmlBuff.append("<tran_id/>");
xmlBuff.append("<tran_ser>").append("<![CDATA[" + tranSer + "]]>").append("</tran_ser>");
xmlBuff.append("<tran_date>").append("<![CDATA[" + sdfAppl.format(adt_credit_note).toString() + "]]>").append("</tran_date>");
xmlBuff.append("<fin_entity>").append("<![CDATA[" + ls_fin_entity + "]]>").append("</fin_entity>");
xmlBuff.append("<site_code>").append("<![CDATA[" + as_site_code + "]]>").append("</site_code>");
xmlBuff.append("<sundry_type>").append("<![CDATA[" + "C" + "]]>").append("</sundry_type>");
xmlBuff.append("<sundry_code>").append("<![CDATA[" + ls_cust_code + "]]>").append("</sundry_code>");
xmlBuff.append("<item_ser>").append("<![CDATA[" + ls_item_ser + "]]>").append("</item_ser>");
xmlBuff.append("<invoice_id>").append("<![CDATA[" + ls_invoice_id + "]]>").append("</invoice_id>");
xmlBuff.append("<acct_code>").append("<![CDATA[" + ls_acct_code + "]]>").append("</acct_code>");
xmlBuff.append("<cctr_code>").append("<![CDATA[" + ls_cctr_code + "]]>").append("</cctr_code>");
xmlBuff.append("<amount>").append("<![CDATA[" + (lc_tot_net_amt) + "]]>").append("</amount>");
xmlBuff.append("<curr_code>").append("<![CDATA[" + checkNull(ls_curr_code ) + "]]>").append("</curr_code>");
xmlBuff.append("<exch_rate>").append("<![CDATA[" + lc_exch_rate + "]]>").append("</exch_rate>");
xmlBuff.append("<anal_code>").append("<![CDATA[" + ls_anal_code + "]]>").append("</anal_code>");
xmlBuff.append("<cr_term>").append("<![CDATA[" + ls_cr_term + "]]>").append("</cr_term>");
xmlBuff.append("<emp_code__aprv>").append("<![CDATA[" + ls_emp_code__aprv + "]]>").append("</emp_code__aprv>");
xmlBuff.append("<drcr_flag>").append("<![CDATA[" + "C" + "]]>").append("</drcr_flag>");
xmlBuff.append("<remarks>").append("<![CDATA[" + remarks + "]]>").append("</remarks>");
xmlBuff.append("<gp_no>").append("<![CDATA[" + ls_gp_no + "]]>").append("</gp_no>");
xmlBuff.append("<gp_date>").append("<![CDATA[" + sdfAppl.format(ld_gp_date).toString() + "]]>").append("</gp_date>");
//xmlBuff.append("<tran_id__rcv>").append("<![CDATA[" + "" + "]]>").append("</tran_id__rcv>");
xmlBuff.append("<adj_recv>").append("<![CDATA[" + ls_finpara + "]]>").append("</adj_recv>");
xmlBuff.append("<confirmed>").append("<![CDATA[" + "N" + "]]>").append("</confirmed>");
xmlBuff.append("<eff_date>").append("<![CDATA[" + sdfAppl.format(currDate).toString() + "]]>").append("</eff_date>");
xmlBuff.append("<due_date>").append("<![CDATA[" + sdfAppl.format(currDate).toString() + "]]>").append("</due_date>");
xmlBuff.append("<item_ser>").append("<![CDATA[" + checkNull(ls_item_ser ) + "]]>").append("</item_ser>");
xmlBuff.append("<tran_type>").append("<![CDATA[" + checkNull(as_tran_type) + "]]>").append("</tran_type>");
xmlBuff.append("<amount__bc>").append("<![CDATA[" + (lc_tot_net_amt * lc_exch_rate ) + "]]>").append("</amount__bc>");
xmlBuff.append("<rnd_off>").append("<![CDATA[" + ls_rndoff + "]]>").append("</rnd_off>");
xmlBuff.append("<rnd_to>").append("<![CDATA[" + ls_rndTo + "]]>").append("</rnd_to>");
xmlBuff.append("</Detail1>");
xmlBuff.append("\n");
}
sql = "select sales_pers from invoice where invoice_id = ? ";
......@@ -3590,6 +3655,21 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
}*/
xmlBuff.append("<Detail2 dbID=\"\" domID=\""+ll_line_no+"\" objContext=\"2\" objName=\"drcrrcp_cr\">");
xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" status=\"N\" updateFlag=\"A\"/>");
xmlBuff.append("<drcrrcp_cr/>");
xmlBuff.append("<line_no>").append("<![CDATA[" + ll_line_no + "]]>").append("</line_no>");
xmlBuff.append("<invoice_id>").append("<![CDATA[" + ls_invoice_id + "]]>").append("</invoice_id>");
xmlBuff.append("<line_no_inv>").append("<![CDATA[" + ll_line_no__inv + "]]>").append("</line_no_inv>");
xmlBuff.append("<item_code>").append("<![CDATA[" + ls_item_code + "]]>").append("</item_code>");
xmlBuff.append("<sales_pers>").append("<![CDATA[" + ls_sales_pers + "]]>").append("</sales_pers>");
xmlBuff.append("<tax_class>").append("<![CDATA[" + ls_tax_class + "]]>").append("</tax_class>");
xmlBuff.append("<tax_chap>").append("<![CDATA[" + ls_tax_chap + "]]>").append("</tax_chap>");
xmlBuff.append("<tax_env>").append("<![CDATA[" + ls_tax_env + "]]>").append("</tax_env>");
sql = " INSERT INTO DRCR_RDET ( TRAN_ID, LINE_NO, INVOICE_ID, LINE_NO__INV, ITEM_CODE, SALES_PERS, TAX_CLASS, TAX_CHAP, TAX_ENV, DRCR_AMT," +
" TAX_AMT, NET_AMT, REAS_CODE, QUANTITY, RATE, RATE__CLG, DISCOUNT, LINE_NO__SRET, LINE_NO__INVTRACE, LOT_NO, LOT_SL) " +
" VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) " ;
......@@ -3610,11 +3690,16 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setDouble( 10, lc_drcr_amt);
//lc_tot_net_amt = lc_tot_net_amt + lc_net_amt ;
pstmt1.setDouble( 12, lc_net_amt);
xmlBuff.append("<drcr_amt>").append("<![CDATA[" + lc_drcr_amt + "]]>").append("</drcr_amt>");
xmlBuff.append("<net_amt>").append("<![CDATA[" + lc_net_amt + "]]>").append("</net_amt>");
}
if (lb_flag == true)
{
pstmt1.setDouble( 10, lc_amt);
pstmt1.setDouble( 12, (lc_amt + lc_tax_amt));
xmlBuff.append("<drcr_amt>").append("<![CDATA[" + lc_amt + "]]>").append("</drcr_amt>");
xmlBuff.append("<net_amt>").append("<![CDATA[" + (lc_amt + lc_tax_amt) + "]]>").append("</net_amt>");
}
//pstmt1.setDouble( 10, lc_drcr_amt);
......@@ -3629,7 +3714,23 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setString( 19, ll_line_no_invtrace);
pstmt1.setString( 20, ls_lot_no);
pstmt1.setString( 21, ls_lotsl);
int detCnt = pstmt1.executeUpdate();
xmlBuff.append("<tax_amt>").append("<![CDATA[" + (lc_tax_amt) + "]]>").append("</tax_amt>");
xmlBuff.append("<reas_code>").append("<![CDATA[" + (ls_reas_code) + "]]>").append("</reas_code>");
xmlBuff.append("<quantity>").append("<![CDATA[" + (lc_qty_stduom) + "]]>").append("</quantity>");
xmlBuff.append("<rate>").append("<![CDATA[" + (lc_rate_stduom) + "]]>").append("</rate>");
xmlBuff.append("<rate_clg>").append("<![CDATA[" + (lc_rate__clg) + "]]>").append("</rate_clg>");
xmlBuff.append("<discount>").append("<![CDATA[" + (lc_discount) + "]]>").append("</discount>");
xmlBuff.append("<line_no__sreturn>").append("<![CDATA[" + (ll_line_no_sret) + "]]>").append("</line_no__sreturn>");
xmlBuff.append("<line_no__invtrace>").append("<![CDATA[" + (ll_line_no_invtrace) + "]]>").append("</line_no__invtrace>");
xmlBuff.append("<lot_no>").append("<![CDATA[" + (ls_lot_no) + "]]>").append("</lot_no>");
xmlBuff.append("<lot_sl>").append("<![CDATA[" + (ls_lotsl) + "]]>").append("</lot_sl>");
xmlBuff.append("</Detail2>");
xmlBuff.append("\n");
//int detCnt = pstmt1.executeUpdate();
if(pstmt1 != null)
{
pstmt1.close();pstmt1 = null;
......@@ -3646,6 +3747,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
rs = null;
}
currRow = 0;
sql = "SELECT TRAN_ID, REF_SER, REF_NO, ADJ_AMT, REF_BAL_AMT FROM SRETURN_INV WHERE TRAN_ID = ?";
pstmt = conn.prepareStatement(sql);
......@@ -3669,13 +3771,20 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setString(4, ls_sr_ref_no);
pstmt1.setDouble(5, Double.valueOf(lc_sr_adj_amt));
pstmt1.setDouble(6, Double.valueOf(lc_sr_ref_bal_amt));
pstmt1.executeUpdate();
//pstmt1.executeUpdate();
if (pstmt1 != null )
{
pstmt1.close();
pstmt1 = null;
}
//Added by wasim on 01-jun-2017 to insert data into drcr_rcpinv as per NVO code, previously it was writtten this code [END]
xmlBuff.append("<Detail3 dbID=\"\" domID=\"1\" objName=\"drcrrcp_cr\" objContext=\"3\">");
xmlBuff.append("<line_no><![CDATA["+ currRow +"]]></line_no>");
xmlBuff.append("<ref_ser><![CDATA["+ ls_sr_ref_ser +"]]></ref_ser>");
xmlBuff.append("<ref_no><![CDATA["+ ls_sr_ref_no +"]]></ref_no>");
xmlBuff.append("<ref_bal_amt><![CDATA["+ lc_sr_ref_bal_amt +"]]></ref_bal_amt>");
xmlBuff.append("<adj_amt><![CDATA["+ lc_sr_adj_amt +"]]></adj_amt>");
xmlBuff.append("</Detail3>");
}
if (pstmt != null )
{
......@@ -3687,10 +3796,30 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
rs.close();
rs = null;
}
xmlBuff.append("</Header0>");
xmlBuff.append("</group0>");
xmlBuff.append("</DocumentRoot>");
errorString = saveData(xtraParams,as_site_code,xmlBuff.toString(),conn);
System.out.println("@@@@@2: retString:"+errorString);
System.out.println("--retString finished--");
if (errorString.indexOf("Success") > -1)
{
System.out.println("@@@@@@3: Success"+errorString);
Document dom = genericUtility.parseString(errorString);
System.out.println("dom>>>"+dom);
drNtTranId = genericUtility.getColumnValue("TranID",dom);
}
else
{
System.out.println("[SuccessSuccess" + errorString + "]");
conn.rollback();
return errorString;
}
sql = "update sreturn set tran_id__crn = ? where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_auto_tran_id);
pstmt.setString(1, drNtTranId);
pstmt.setString(2, ls_tran_id);
int rowcnt = pstmt.executeUpdate();
if (pstmt != null )
......@@ -3699,6 +3828,8 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt = null;
}
//Changed by wasim on 24-MAY-2017 to call gbfRetrieveDrCrRCP as previously gbfRetrieveDrCrInv login was migrated [START]
/*ls_errcode = gbfRetrieveDrCr(ls_auto_tran_id, as_site_code, xtraParams, conn);
if (ls_errcode != null && ls_errcode.trim().length() > 0)
......@@ -3709,7 +3840,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
//ls_errcode = gbfRetrieveDrCrRcp(ls_auto_tran_id, as_site_code, xtraParams, conn);
DrCrRcpConf drcrObj = new DrCrRcpConf();
errorString = drcrObj.confirm (ls_auto_tran_id, xtraParams, "" , conn);
errorString = drcrObj.confirm (drNtTranId, xtraParams, "" , conn);
System.out.println("After DrCrRcpConf---->["+errorString+"]");
if(errorString != null && errorString.indexOf("VTCICONF3") != -1)
{
......@@ -3786,12 +3917,14 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
//FinCommon finCommon = new FinCommon();
Timestamp currDate = null;
UtilMethods utilMethods = UtilMethods.getInstance();
StringBuffer xmlBuff = null;
String objName= "";
boolean lb_flag;
try
{
currDate = new java.sql.Timestamp(System.currentTimeMillis());
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
xmlBuff = new StringBuffer();
SimpleDateFormat sdfAppl = new SimpleDateFormat(genericUtility.getApplDateFormat());
String currDateStr = sdfAppl.format(currDate);
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
......@@ -3829,7 +3962,8 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
ls_drcr_flag = "D";
transer = "MDRCRD";
ls_tranwin = "W_MISC_DRCR_RCP_DR";
ls_auto_tran_id = generateTranId("w_misc_drcr_rcp_dr",as_site_code,currDateStr,conn);
objName = "misc_drcr_rcp_dr";
ls_auto_tran_id = generateTranId("w_misc_drcr_rcp_dr",as_site_code,ls_drcr_flag,currDateStr,conn);
remarks = "Auto Generated Debit Note for Sales Return " + ls_tran_id;
}
else
......@@ -3837,7 +3971,8 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
ls_drcr_flag = "C";
transer = "MDRCRC";
ls_tranwin = "W_MISC_DRCR_RCP_CR";
ls_auto_tran_id = generateTranId("w_misc_drcr_rcp_cr",as_site_code,currDateStr,conn);
objName = "misc_drcr_rcp_cr";
ls_auto_tran_id = generateTranId("w_misc_drcr_rcp_cr",as_site_code,ls_drcr_flag,currDateStr,conn);
remarks = "Auto Generated Credit Note for Sales Return " + ls_tran_id;
}
......@@ -4119,12 +4254,122 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setString( 29, "N" );
System.out.println("ls_fin_entity["+ls_fin_entity+"]");
int cnt=pstmt1.executeUpdate();
//int cnt=pstmt1.executeUpdate();
if(pstmt1 != null)
{
pstmt1.close();pstmt1 = null;
}
}
xmlBuff.append("<?xml version='1.0' encoding='ISO-8859-1'?><DocumentRoot>");
xmlBuff.append("<description>Datawindow Root</description>");
xmlBuff.append("<group0>");
xmlBuff.append("<description>Group0 description</description>");
xmlBuff.append("<Header0>");
xmlBuff.append("<objName><![CDATA[").append("misc_drcr_rcp_cr").append("]]></objName>");
xmlBuff.append("<pageContext><![CDATA[").append("1").append("]]></pageContext>");
xmlBuff.append("<objContext><![CDATA[").append("1").append("]]></objContext>");
xmlBuff.append("<editFlag><![CDATA[").append("A").append("]]></editFlag>");
xmlBuff.append("<focusedColumn><![CDATA[").append("").append("]]></focusedColumn>");
xmlBuff.append("<action><![CDATA[").append("SAVE").append("]]></action>");
xmlBuff.append("<elementName><![CDATA[").append("").append("]]></elementName>");
xmlBuff.append("<keyValue><![CDATA[").append("1").append("]]></keyValue>");
xmlBuff.append("<taxKeyValue><![CDATA[").append("").append("]]></taxKeyValue>");
xmlBuff.append("<saveLevel><![CDATA[").append("1").append("]]></saveLevel>");
xmlBuff.append("<forcedSave><![CDATA[").append(true).append("]]></forcedSave>");
xmlBuff.append("<taxInFocus><![CDATA[").append(false).append("]]></taxInFocus>");
xmlBuff.append("<description>Header0 members</description>");
/*xmlBuff.append("<Detail1 dbID=\"\" domID=\"1\" objName=\""+objName+"\" objContext=\"1\">");
xmlBuff.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
xmlBuff.append("<tran_id/>");
xmlBuff.append("<tran_ser><![CDATA["+ tranSer +"]]></tran_ser>");
xmlBuff.append("<tran_date><![CDATA["+ sdfAppl.format(currDate).toString() +"]]></tran_date>");
xmlBuff.append("<eff_date><![CDATA["+ sdfAppl.format(currDate).toString() +"]]></eff_date>");
xmlBuff.append("<fin_entity><![CDATA["+ ls_fin_entity +"]]></fin_entity>");
xmlBuff.append("<site_code><![CDATA["+as_site_code +"]]></site_code>");
xmlBuff.append("<sundry_type><![CDATA["+ "C" +"]]></sundry_type>");
xmlBuff.append("<sundry_code><![CDATA["+ ls_cust_code +"]]></sundry_code>");
xmlBuff.append("<acct_code><![CDATA["+checkNull(ls_acct_code) +"]]></acct_code>");
xmlBuff.append("<curr_code><![CDATA["+ checkNull(ls_cctr_code) +"]]></curr_code>");
xmlBuff.append("<amount><![CDATA["+ (lc_tot_net_amt + lc_process_fee) +"]]></amount>");
xmlBuff.append("<curr_code><![CDATA["+ checkNull(ls_curr_code ) +"]]></curr_code>");
xmlBuff.append("<exch_rate><![CDATA["+ lc_exch_rate +"]]></exch_rate>");
xmlBuff.append("<drcr_flag><![CDATA["+ "C" +"]]></drcr_flag>");
xmlBuff.append("<tran_id__rcv><![CDATA["+ "" +"]]></tran_id__rcv>");
xmlBuff.append("<confirmed><![CDATA["+ "N" +"]]></confirmed>");
xmlBuff.append("<chg_user><![CDATA["+ chgUser +"]]></chg_user>");
xmlBuff.append("<chg_date><![CDATA["+ sdf.format(currDate).toString() +"]]></chg_date>");
xmlBuff.append("<chg_term><![CDATA["+ chgTerm +"]]></chg_term>");
xmlBuff.append("<conf_date><![CDATA["+ sdfAppl.format(currDate).toString() +"]]></conf_date>");
xmlBuff.append("<emp_code__aprv><![CDATA["+ ls_emp_code__aprv +"]]></emp_code__aprv>");
xmlBuff.append("<due_date><![CDATA["+ sdfAppl.format(currDate).toString() +"]]></due_date>");
xmlBuff.append("<tran_type><![CDATA["+ checkNull(ls_trantype) +"]]></tran_type>");
xmlBuff.append("<item_ser><![CDATA["+ checkNull(ls_item_ser ) +"]]></item_ser>");
xmlBuff.append("<amount__bc><![CDATA["+ ((lc_tot_net_amt + lc_process_fee) * lc_exch_rate ) +"]]></amount__bc>");
xmlBuff.append("<sreturn_no><![CDATA["+ checkNull(ls_tran_id) +"]]></sreturn_no>");
xmlBuff.append("<adj_misc_crn><![CDATA["+ls_adj_misc_crn+"]]></adj_misc_crn>");
xmlBuff.append("<adj_amount><![CDATA["+ 0.0 +"]]></adj_amount>");
xmlBuff.append("<parent__tran_id><![CDATA["+ "" +"]]></parent__tran_id>");
xmlBuff.append("<rev__tran><![CDATA["+ "" +"]]></rev__tran>");
xmlBuff.append("<round_adj><![CDATA["+ 0.0 +"]]></round_adj>");
xmlBuff.append("<cust_ref_no><![CDATA["+ ls_ret_ref +"]]></cust_ref_no>");
xmlBuff.append("<rnd_off><![CDATA["+ls_rndoff+"]]></rnd_off>");
xmlBuff.append("<rnd_to><![CDATA["+ls_rndTo+"]]></rnd_to>");
xmlBuff.append("</Detail1>");*/
xmlBuff.append("<Detail1 dbID=\"\" domID=\"1\" objContext=\"1\" objName=\"misc_drcr_rcp_cr\">");
xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" status=\"N\" updateFlag=\"A\"/>");
xmlBuff.append("<misc_drcr_rcp_dr/>");
xmlBuff.append("<tran_id/>");
xmlBuff.append("<tran_ser>").append("<![CDATA[" + tranSer + "]]>").append("</tran_ser>");
xmlBuff.append("<tran_date>").append("<![CDATA[" + sdfAppl.format(currDate).toString() + "]]>").append("</tran_date>");
xmlBuff.append("<fin_entity>").append("<![CDATA[" + ls_fin_entity + "]]>").append("</fin_entity>");
xmlBuff.append("<site_code>").append("<![CDATA[" + as_site_code + "]]>").append("</site_code>");
xmlBuff.append("<sundry_type>").append("<![CDATA[" + "C" + "]]>").append("</sundry_type>");
xmlBuff.append("<sundry_code>").append("<![CDATA[" + ls_cust_code + "]]>").append("</sundry_code>");
xmlBuff.append("<acct_code>").append("<![CDATA[" + ls_acct_code + "]]>").append("</acct_code>");
xmlBuff.append("<cctr_code>").append("<![CDATA[" + ls_cctr_code + "]]>").append("</cctr_code>");
xmlBuff.append("<amount>").append("<![CDATA[" + (lc_net_amt + lc_process_fee) + "]]>").append("</amount>");
xmlBuff.append("<curr_code>").append("<![CDATA[" + checkNull(ls_curr_code ) + "]]>").append("</curr_code>");
xmlBuff.append("<exch_rate>").append("<![CDATA[" + lc_exch_rate + "]]>").append("</exch_rate>");
//xmlBuff.append("<remarks>").append("<![CDATA[" + "Against contract id:"+contractId+" from "+fromDateStr+" to "+toDateStr+" "+"]]>").append("</remarks>");
xmlBuff.append("<drcr_flag>").append("<![CDATA[" + "C" + "]]>").append("</drcr_flag>");
//xmlBuff.append("<tran_id__rcv>").append("<![CDATA[" + "" + "]]>").append("</tran_id__rcv>");
xmlBuff.append("<confirmed>").append("<![CDATA[" + "N" + "]]>").append("</confirmed>");
xmlBuff.append("<due_date>").append("<![CDATA[" + sdfAppl.format(currDate).toString() + "]]>").append("</due_date>");
xmlBuff.append("<item_ser>").append("<![CDATA[" + checkNull(ls_item_ser ) + "]]>").append("</item_ser>");
xmlBuff.append("<tran_type>").append("<![CDATA[" + checkNull(ls_trantype) + "]]>").append("</tran_type>");
xmlBuff.append("<amount__bc>").append("<![CDATA[" + ((lc_net_amt + lc_process_fee) * lc_exch_rate ) + "]]>").append("</amount__bc>");
xmlBuff.append("<rnd_off>").append("<![CDATA[" + ls_rndoff + "]]>").append("</rnd_off>");
xmlBuff.append("<rnd_to>").append("<![CDATA[" + ls_rndTo + "]]>").append("</rnd_to>");
xmlBuff.append("</Detail1>");
xmlBuff.append("\n");
}
/*xmlBuff.append("<?xml version='1.0' encoding='ISO-8859-1'?>\n");
xmlBuff.append("<DocumentRoot>");
xmlBuff.append("<description>").append("Datawindow Root").append("</description>");
xmlBuff.append("<group0>");
xmlBuff.append("<description>").append("Group0 description").append("</description>");
xmlBuff.append("<Header0>");
xmlBuff.append("<objName><![CDATA[").append(objName).append("]]></objName>");
xmlBuff.append("<pageContext><![CDATA[").append("1").append("]]></pageContext>");
xmlBuff.append("<objContext><![CDATA[").append("1").append("]]></objContext>");
xmlBuff.append("<editFlag><![CDATA[").append("A").append("]]></editFlag>");
xmlBuff.append("<focusedColumn><![CDATA[").append("").append("]]></focusedColumn>");
xmlBuff.append("<action><![CDATA[").append("SAVE").append("]]></action>");
xmlBuff.append("<elementName><![CDATA[").append("").append("]]></elementName>");
xmlBuff.append("<keyValue><![CDATA[").append("1").append("]]></keyValue>");
xmlBuff.append("<taxKeyValue><![CDATA[").append("").append("]]></taxKeyValue>");
xmlBuff.append("<saveLevel><![CDATA[").append("1").append("]]></saveLevel>");
xmlBuff.append("<forcedSave><![CDATA[").append(true).append("]]></forcedSave>");
xmlBuff.append("<taxInFocus><![CDATA[").append(false).append("]]></taxInFocus>");
xmlBuff.append("<description>").append("Header0 members").append("</description>"); */
System.out.println("ls_tran_id ["+ls_tran_id+"]");
System.out.println("ls_cust_code ["+ls_cust_code+"]");
ls_old_cust_code = ls_cust_code;
......@@ -4195,6 +4440,18 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setString( 9, ls_tax_chap);
pstmt1.setString( 10, ls_tax_env);
/*xmlBuff.append("<Detail2 dbID=\"\" domID=\"1\" objName=\""+objName+"\" objContext=\"2\">");
xmlBuff.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
xmlBuff.append("<tran_id/>"); */
xmlBuff.append("<Detail2 dbID=\"\" domID=\""+ll_line_no+"\" objContext=\"2\" objName=\"misc_drcr_rcp_cr\">");
xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" status=\"N\" updateFlag=\"A\"/>");
xmlBuff.append("<misc_drcr_rcp_dr/>");
//xmlBuff.append("<line_no><![CDATA["+ ll_line_no+"]]></line_no>");
xmlBuff.append("<line_no>").append("<![CDATA[" + ll_line_no + "]]>").append("</line_no>");
ls_process_fee_reason = distCommon.getDisparams("999999","PROCESS_FEE_REASON",conn) ;
if ("NULLFOUND".equalsIgnoreCase(ls_process_fee_reason) || ls_process_fee_reason == null || ls_process_fee_reason.trim().length() == 0)
{
......@@ -4207,18 +4464,42 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setDouble( 5, lc_process_fee );
pstmt1.setDouble( 6, lc_process_fee );
pstmt1.setString( 11, ls_process_fee_reason);
/*xmlBuff.append("<acct_code><![CDATA["+ ls_acct_code__pfee +"]]></acct_code>");
xmlBuff.append("<cctr_code><![CDATA["+ ls_cctr_code__pfee +"]]></cctr_code>");
xmlBuff.append("<amount><![CDATA["+ lc_process_fee +"]]></amount>");
xmlBuff.append("<net_amt><![CDATA["+ lc_process_fee +"]]></net_amt>");
xmlBuff.append("<reas_code><![CDATA["+ lc_process_fee +"]]></reas_code>");*/
xmlBuff.append("<acct_code>").append("<![CDATA[" + ls_acct_code__pfee + "]]>").append("</acct_code>");
xmlBuff.append("<cctr_code>").append("<![CDATA[" + ls_cctr_code__pfee + "]]>").append("</cctr_code>");
xmlBuff.append("<amount>").append("<![CDATA[" + lc_process_fee + "]]>").append("</amount>");
xmlBuff.append("<net_amt>").append("<![CDATA[" + lc_process_fee + "]]>").append("</net_amt>");
xmlBuff.append("<reas_code>").append("<![CDATA[" + ls_process_fee_reason + "]]>").append("</reas_code>");
}
else
{
pstmt1.setString( 3, ls_det_acct );
pstmt1.setString( 4, ls_det_cctr );
pstmt1.setString( 11, ls_reas_code);
xmlBuff.append("<acct_code><![CDATA["+ ls_det_acct +"]]></acct_code>");
xmlBuff.append("<cctr_code><![CDATA["+ ls_det_cctr +"]]></cctr_code>");
xmlBuff.append("<reas_code><![CDATA["+ ls_reas_code +"]]></reas_code>");
xmlBuff.append("<acct_code>").append("<![CDATA[" + ls_det_acct + "]]>").append("</acct_code>");
xmlBuff.append("<cctr_code>").append("<![CDATA[" + ls_det_cctr + "]]>").append("</cctr_code>");
xmlBuff.append("<reas_code>").append("<![CDATA[" + ls_reas_code + "]]>").append("</reas_code>");
}
lc_drcr_amt = (lc_qty_stduom * lc_rate_stduom) - ((lc_qty_stduom * lc_rate_stduom) * lc_discount / 100) ;
System.out.println("lc_drcr_amt("+lc_drcr_amt+") = ("+lc_qty_stduom+" * "+lc_qty_stduom+") - ("+lc_qty_stduom+"*"+lc_rate_stduom+") * "+lc_discount+"/ 100");
if (lc_net_amt >= 0 )
{
pstmt1.setDouble( 5, lc_drcr_amt );
pstmt1.setDouble( 6, lc_net_amt );
xmlBuff.append("<amount>").append("<![CDATA[" + lc_drcr_amt + "]]>").append("</amount>");
xmlBuff.append("<net_amt>").append("<![CDATA[" + lc_net_amt + "]]>").append("</net_amt>");
}
pstmt1.setDouble( 7, lc_tax_amt );
pstmt1.setString( 12, ls_item_code);
......@@ -4230,7 +4511,38 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setString( 18, ls_lotsl);
pstmt1.setString( 19, ls_unit);
lc_tot_net_amt = lc_tot_net_amt + lc_net_amt ;
int detCnt = pstmt1.executeUpdate();
/* xmlBuff.append("<tax_amt><![CDATA["+ (lc_tax_amt) +"]]></tax_amt>");
xmlBuff.append("<item_code><![CDATA["+ (lc_tax_amt) +"]]></item_code>");
xmlBuff.append("<quantity><![CDATA["+ (lc_tax_amt) +"]]></quantity>");
xmlBuff.append("<rate><![CDATA["+ (lc_tax_amt) +"]]></rate>");
xmlBuff.append("<line_no__sret><![CDATA["+ (ll_line_no_sret)+"]]></line_no__sret>");
xmlBuff.append("<line_no__invtrace><![CDATA["+(ll_line_no_invtrace)+"]]></line_no__invtrace>");
xmlBuff.append("<lot_no><![CDATA["+ ls_lot_no+"]]></lot_no>");
xmlBuff.append("<lot_sl><![CDATA["+ ls_lotsl +"]]></lot_sl>");
xmlBuff.append("<unit><![CDATA["+ ls_unit +"]]></unit>");
xmlBuff.append("</Detail2>");
*/
xmlBuff.append("<tax_amt>").append("<![CDATA[" + lc_tax_amt + "]]>").append("</tax_amt>");
xmlBuff.append("<item_code>").append("<![CDATA[" + ls_item_code + "]]>").append("</item_code>");
xmlBuff.append("<quantity>").append("<![CDATA[" + lc_qty_stduom + "]]>").append("</quantity>");
xmlBuff.append("<rate>").append("<![CDATA[" + lc_rate_stduom + "]]>").append("</rate>");
xmlBuff.append("<line_no__sret>").append("<![CDATA[" + ll_line_no_sret + "]]>").append("</line_no__sret>");
xmlBuff.append("<lot_no>").append("<![CDATA[" + ls_lot_no + "]]>").append("</lot_no>");
xmlBuff.append("<lot_sl>").append("<![CDATA[" + ls_lotsl + "]]>").append("</lot_sl>");
xmlBuff.append("<unit>").append("<![CDATA[" + ls_unit + "]]>").append("</unit>");
xmlBuff.append("<line_no__invtrace>").append("<![CDATA[" + ll_line_no_invtrace + "]]>").append("</line_no__invtrace>");
xmlBuff.append("<tax_class><![CDATA["+ checkNull(ls_tax_class) +"]]></tax_class>");
xmlBuff.append("<tax_chap><![CDATA["+ checkNull(ls_tax_chap) +"]]></tax_chap>");
xmlBuff.append("<tax_env><![CDATA["+ checkNull(ls_tax_env) +"]]></tax_env>");
xmlBuff.append("</Detail2>");
xmlBuff.append("\n");
//int detCnt = pstmt1.executeUpdate();
if(pstmt1 != null)
{
pstmt1.close();pstmt1 = null;
......@@ -4247,7 +4559,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
rs = null;
}
///////////////////// arun
///////////////////// arun <Detail3 dbID=\"\" domID=\"1\" objName=\"
System.out.println("<<-----------code calling ------------->>");
sql="update MISC_DRCR_RCP set amount =? , AMOUNT__BC = ? where tran_id = ?";
......@@ -4296,11 +4608,21 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
pstmt1.setString( 5, lc_SR_REF_BAL_AMT );
pstmt1.setString( 6, lc_SR_ADJ_AMT );
pstmt1.setString( 7, lc_SR_mrp_value__adj );
int detCnt = pstmt1.executeUpdate();
//int detCnt = pstmt1.executeUpdate();
if(pstmt1 != null)
{
pstmt1.close();pstmt1 = null;
}
xmlBuff.append("<Detail3 dbID=\"\" domID=\"1\" objName=\""+objName+"\" objContext=\"3\">");
xmlBuff.append("<line_no><![CDATA["+ li_Sreturn_cnt +"]]></line_no>");
xmlBuff.append("<ref_ser><![CDATA["+ li_Sreturn_cnt +"]]></ref_ser>");
xmlBuff.append("<ref_no><![CDATA["+ li_Sreturn_cnt +"]]></ref_no>");
xmlBuff.append("<ref_bal_amt><![CDATA["+ li_Sreturn_cnt +"]]></ref_bal_amt>");
xmlBuff.append("<adj_amt><![CDATA["+ li_Sreturn_cnt +"]]></adj_amt>");
xmlBuff.append("<mrp_val__adj><![CDATA["+ li_Sreturn_cnt +"]]></mrp_val__adj>");
xmlBuff.append("</Detail3>");
}
if (pstmt != null )
......@@ -4314,11 +4636,31 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
rs = null;
}
}
xmlBuff.append("</Header0>");
xmlBuff.append("</group0>");
xmlBuff.append("</DocumentRoot>");
String xmlString = xmlBuff.toString().trim().replaceFirst("^([\\W]+)<","<");
String drNtTranId="";
errorString = saveData(xtraParams,as_site_code,xmlString,conn);
System.out.println("@@@@@2: retString:"+errorString);
System.out.println("--retString finished--");
if (errorString.indexOf("Success") > -1)
{
System.out.println("@@@@@@3: Success"+errorString);
Document dom = genericUtility.parseString(errorString);
System.out.println("dom>>>"+dom);
drNtTranId = genericUtility.getColumnValue("TranID",dom);
}
else
{
System.out.println("[SuccessSuccess" + errorString + "]");
conn.rollback();
return errorString;
}
sql = "update sreturn set tran_id__crn = ? where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_auto_tran_id);
pstmt.setString(1, drNtTranId);
pstmt.setString(2, ls_tran_id);
int rowcnt = pstmt.executeUpdate();
if (pstmt != null )
......@@ -4329,7 +4671,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
if( rowcnt == 0 )
{
ls_errcode = "DS000NR";
//ls_errcode = "DS000NR";
}
/* DrCrRcpConf drcrObj = new DrCrRcpConf();
......@@ -4339,7 +4681,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
// added arun start
MiscDrCrRcpConf confDebitNote = new MiscDrCrRcpConf();
errorString= confDebitNote.confirm(ls_auto_tran_id,xtraParams, "" , conn);
errorString= confDebitNote.confirm(drNtTranId,xtraParams, "" , conn);
System.out.println("After DrCrRcpConf---->["+errorString+"]");
System.out.println("errorString["+errorString+"]");
if(errorString != null && errorString.indexOf("CONFSUCCES") != -1)
......@@ -4367,7 +4709,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
}
return errorString;
}
private String generateTranId(String windowName, String siteCode, String tranDateStr, Connection conn) throws ITMException
private String generateTranId(String windowName, String siteCode,String ls_drcr_flag, String tranDateStr, Connection conn) throws ITMException
{
PreparedStatement pstmt = null;
ResultSet rs = null;
......@@ -4407,6 +4749,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
xmlValues = xmlValues + "<tran_id></tran_id>";
xmlValues = xmlValues + "<site_code>" + siteCode + "</site_code>";
xmlValues = xmlValues + "<tran_date>" + tranDateStr + "</tran_date>";
xmlValues = xmlValues + "<drcr_flag>" + ls_drcr_flag + "</drcr_flag>";
xmlValues = xmlValues + "</Detail1></Root>";
System.out.println("xmlValues :[" + xmlValues + "]");
TransIDGenerator generatedTranid = new TransIDGenerator(xmlValues, "BASE", CommonConstants.DB_NAME);
......@@ -5653,4 +5996,54 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
}
//Changed by wasim on 24-MAY-2017 for migration to retrieve DRCRrcp [END]
//Changed by wasim on 24-MAY-2017 for migration to retrieve DRCRrcp [START]
private String saveData(String xtraParams,String siteCode, String xmlString, Connection conn) throws ITMException
{
System.out.println("saving data...........");
InitialContext ctx = null;
String retString = null;
String userId =""; //Added By PriyankaC on 15/03/2018. [START]
MasterStatefulLocal masterStateful = null; // for ejb3
E12GenericUtility genericUtility=new E12GenericUtility();
ibase.utility.UserInfoBean userInfoBean=new UserInfoBean();
try
{
//Added By PriyankaC on 15/03/2018. [START]
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
System.out.println("userId" + userId + "]");
//Added By PriyankaC on 15/03/2018. [END]
AppConnectParm appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
masterStateful = (MasterStatefulLocal) ctx.lookup("ibase/MasterStatefulEJB/local");
System.out.println("-----------masterStateful------- " + masterStateful);
String[] authencate = new String[2];
//authencate[0] = "";
authencate[0] = userId; //Changed By PriynkaC on 15/03/2018
authencate[1] = "";
System.out.println("xmlString to masterstateful [" + xmlString + "]");
userInfoBean.setEmpCode(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"));
userInfoBean.setRemoteHost(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
userInfoBean.setSiteCode(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
userInfoBean.setLoginCode(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
userInfoBean.setEntityCode(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"));
retString = masterStateful.processRequest(authencate, siteCode, true, xmlString, true, conn);
} catch (ITMException itme)
{
System.out.println("ITMException :CreateDistOrder :saveData :==>");
throw itme;
} catch (Exception e)
{
e.printStackTrace();
System.out.println("Exception :CreateDistOrder :saveData :==>");
throw new ITMException(e);
}
return retString;
}
}
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