Commit 303e67f0 authored by kshinde's avatar kshinde

Create Voucher returned Success errString

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187736 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a4c39c06
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>webitm-dis</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
...@@ -51,6 +51,16 @@ public class CreateVoucherAct extends ActionHandlerEJB implements CreateVoucherA ...@@ -51,6 +51,16 @@ public class CreateVoucherAct extends ActionHandlerEJB implements CreateVoucherA
CreatePoRcpVoucher createVouc = new CreatePoRcpVoucher(); CreatePoRcpVoucher createVouc = new CreatePoRcpVoucher();
retString = createVouc.createPoRcpVoucher(tranId, retString = createVouc.createPoRcpVoucher(tranId,
xtraParams, conn); xtraParams, conn);
System.out.println("CreateVoucher retString"+retString);
if(retString.indexOf("Success") != -1)
{
String tranIdVoucher=retString.substring( retString.indexOf("<TranID>")+8, retString.indexOf("</TranID>"));
System.out.println("tranIdVoucher is :"+tranIdVoucher);
retString = itmDBAccessEJB.getErrorString("", "VTVOUGEN", "Voucher No. " + tranIdVoucher + "");
return retString;
}
}//try }//try
catch(Exception exception) catch(Exception exception)
{ try { { try {
......
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