Commit e64b9134 authored by cpatil's avatar cpatil

removing error


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98283 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cae4b3a8
...@@ -1238,11 +1238,11 @@ CreatePoVoucherAdvanceLocal, CreatePoVoucherAdvanceRemote ...@@ -1238,11 +1238,11 @@ CreatePoVoucherAdvanceLocal, CreatePoVoucherAdvanceRemote
if ((relagnst == "04") || (code != relagnst)) { if ((relagnst == "04") || (code != relagnst)) {
continue; continue;
}*/ }*/
System.out.println("@@@@advtype["+advtype+"]ordamt["+ordamt+"]advperc["+advperc+"]amount["+amount+"]");
System.out.println("advtype :"+advtype);
if(advtype.equalsIgnoreCase("01")) if(advtype.equalsIgnoreCase("01"))
{ {
calRelAmt=(ordAmt * advperc)/100; calRelAmt=(ordamt * advperc)/100; // change by cpatil ordAmt to ordamt
} }
else if(advtype.equalsIgnoreCase("02")) else if(advtype.equalsIgnoreCase("02"))
{ {
......
...@@ -299,6 +299,12 @@ import javax.xml.rpc.ParameterMode; ...@@ -299,6 +299,12 @@ import javax.xml.rpc.ParameterMode;
System.out.println("@@@@@ updated sucessfully pur_milstn tranId["+tranId+"]tranIdForVoucher["+tranIdForVoucher+"]cnt["+cnt+"]"); System.out.println("@@@@@ updated sucessfully pur_milstn tranId["+tranId+"]tranIdForVoucher["+tranIdForVoucher+"]cnt["+cnt+"]");
// conn.commit(); // conn.commit();
} }
else
{
conn.rollback();
System.out.println("CreatePoVoucherAdvance confirmTranscation failed ...rollback()...");
return returnStr;
}
} }
else else
...@@ -464,6 +470,11 @@ import javax.xml.rpc.ParameterMode; ...@@ -464,6 +470,11 @@ import javax.xml.rpc.ParameterMode;
System.out.println("@@@@@ updated sucessfully pur_milstn tranId["+tranId+"]tranIdForVoucher["+tranIdForVoucher+"]cnt["+cnt+"]"); System.out.println("@@@@@ updated sucessfully pur_milstn tranId["+tranId+"]tranIdForVoucher["+tranIdForVoucher+"]cnt["+cnt+"]");
// conn.commit(); // conn.commit();
} }
else
{
System.out.println("confirmTranscation debit node failed ...returnStr... rollback()..["+returnStr+"]");
conn.rollback();
}
} }
else 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