Commit 5a74d2cf authored by vkadam's avatar vkadam

Resolve issue in EDIT mode when all records from detail are deleted [comment if(count>0)]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100298 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c63cc316
......@@ -159,8 +159,15 @@ public class POrderPostSave extends ValidatorEJB implements POrderPostSaveLocal,
frtAmt = frtAmtFixed + frtAmtQty;
System.out.println("frtAmtQty@@@@@@@@@@@@@@@@@@@ " + frtAmt);*/
if(count > 0)
{
/**
* Following if(count>0) is commented
* on 02/MAR/16
* to resolve the issue
* in EDIT mode when all details are deleted
* */
// if(count > 0)
// {
sql = "update porder set tax_amt = ?,tot_amt = ?,ord_amt = ? where purc_order = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, taxAmtHdr);
......@@ -179,7 +186,7 @@ public class POrderPostSave extends ValidatorEJB implements POrderPostSaveLocal,
/*if(count >0 ){
conn.commit();
}*/
}
// }
......
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