Commit 403d550c authored by apal's avatar apal

Client name:Loyd

 Request id :D17ELHP001
Issue: Post order Bug Quantity Allocation not as per available quantity bug fix 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@175087 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dcb6948a
......@@ -4022,7 +4022,7 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
}
else if(totRecords == 0 && schemeNo == 0)
{
merrcode = "VTPOST06";
merrcode = "VTPOST06";
}
}
......@@ -4526,33 +4526,40 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
keyfld5=log.getKeyfld5();
/*System.out.println("ls_table["+ls_table+"]"+"ls_reas_code["+ls_reas_code+"]"+"ls_reas_detail"+ls_reas_detail+"]");
System.out.println("keyfld1["+keyfld1+"]"+"keyfld2["+keyfld2+"]"+"keyfld3["+keyfld3+"]");
System.out.println("keyfld4["+keyfld4+"]"+"keyfld5["+keyfld5+"]")*/;
System.out.println("keyfld4["+keyfld4+"]"+"keyfld5["+keyfld5+"]");*/
if("sorditem".equalsIgnoreCase(ls_table))
{
/*if(keyfld2 == null && keyfld3 == null)
{
//remove commented by arun p 01-12-17 start
//System.out.println("Insdie sorditem <<<<<<<>>>>>>>["+sql+"]");
if(keyfld2 == null && keyfld3 == null)
{
//System.out.println("Update reason code and reason deatils <<<<<<<>>>>>>>["+sql+"]");
sql = "update sorditem set reas_code = ? ," +
" reas_detail = ? where sale_order = ? ";
}
else
{
System.out.println("Update reason code and reason deatils and line no and exp_value<<<<<<<>>>>>>>["+sql+"]");
sql = "update sorditem set reas_code = ? , " +
" reas_detail = ? where sale_order = ? " +
" and ( (line_no = ?) or (? ='') ) and " +
" ( (exp_lev = ?) or (? ='') ) ";
}
pstmt = conn.prepareStatement(sql);
pstmt = connCP.prepareStatement(sql);
if(keyfld2 == null && keyfld3 == null)
{
//System.out.println("@@@@@@@@@@@ keyfld2 and keyfld3 value "+keyfld1+"]");
pstmt.setString(1,ls_reas_code);
pstmt.setString(2,ls_reas_detail);
pstmt.setString(3,keyfld1);
}
else
{
System.out.println("@@@@@@@@@@@ keyfld2 and keyfld3 value "+keyfld2+"]");
pstmt.setString(1,ls_reas_code);
pstmt.setString(2,ls_reas_detail);
pstmt.setString(3,keyfld1);
......@@ -4561,14 +4568,15 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
pstmt.setString(6,keyfld3);
pstmt.setString(7,keyfld5);
}
*/
sql = "update sorditem set reas_code = ? ," +
//remove commented by arun p 01-12-17 start ended
/*sql = "update sorditem set reas_code = ? ," +
" reas_detail = ? where sale_order = ? ";
pstmt =connCP.prepareStatement(sql);
pstmt.setString(1,ls_reas_code);
pstmt.setString(2,ls_reas_detail);
pstmt.setString(3,keyfld1);
pstmt.setString(3,keyfld1);*/
// commented by arun pal 01-12-17
updCnt = pstmt.executeUpdate();
// System.out.println("updCnt :"+updCnt);
......@@ -4582,6 +4590,7 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
{
merrcode = "";
connCP.commit();
}
else
{
......
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