Commit 9d795800 authored by cpatil's avatar cpatil

modify for issue raised by Ganesh Ghadge


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101423 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2a8fcff1
...@@ -3581,10 +3581,10 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder ...@@ -3581,10 +3581,10 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
amdNo = checkNull(genericUtility.getColumnValue("amd_no", amdNo = checkNull(genericUtility.getColumnValue("amd_no",
dom)); dom));
sql = "select count(*) from poamd_det where amd_no = ? and purc_order = ? "; sql = "select count(1) from poamd_det where amd_no = ? and purc_order = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, purcOrder); pstmt.setString(1, amdNo);
pstmt.setString(2, amdNo); pstmt.setString(2, purcOrder);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) { if (rs.next()) {
cnt = rs.getInt(1); cnt = rs.getInt(1);
...@@ -3594,7 +3594,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder ...@@ -3594,7 +3594,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
sql = " select count(*) from poamd_term where purc_order = ? and amd_no = ? "; sql = " select count(1) from poamd_term where purc_order = ? and amd_no = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, purcOrder); pstmt.setString(1, purcOrder);
pstmt.setString(2, amdNo); pstmt.setString(2, amdNo);
...@@ -3744,7 +3744,10 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder ...@@ -3744,7 +3744,10 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
// frtAmtQty = frtAmtQty==0?0:frtAmtQty; // frtAmtQty = frtAmtQty==0?0:frtAmtQty;
// frtAmtFixed = frtAmtFixed==0?0:frtAmtFixed; // frtAmtFixed = frtAmtFixed==0?0:frtAmtFixed;
ordDateStr = sdf.format(ordDate.getTime()); if( ordDate != null )
{
ordDateStr = sdf.format(ordDate.getTime());
}
System.out.println("@@@@@ordDateStr" + ordDateStr); System.out.println("@@@@@ordDateStr" + ordDateStr);
if (ordDateStr != null && ordDateStr.trim().length() > 0) { if (ordDateStr != null && ordDateStr.trim().length() > 0) {
......
...@@ -121,7 +121,7 @@ public class POrderAmdPostSave extends ValidatorEJB implements ...@@ -121,7 +121,7 @@ public class POrderAmdPostSave extends ValidatorEJB implements
rs.close(); rs.close();
rs = null; rs = null;
} }
if (count > 0) //if (count > 0) //commented by cpatil for delete all line from detail then zero value updated on hdr
{ {
sql = "update poamd_hdr set tax_amt = ?,tot_amt = ?,ord_amt = ? where amd_no = ? "; sql = "update poamd_hdr set tax_amt = ?,tot_amt = ?,ord_amt = ? where amd_no = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
......
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