Commit 7ac53483 authored by pdas's avatar pdas

Request ID-D14LSUN002

Changes for po advance voucher creation with tax


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98178 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 74a36ffe
...@@ -823,20 +823,27 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, ...@@ -823,20 +823,27 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal,
""); "");
} }
} }
System.out.println("RetString>>>>>>>>>>>>>>>>>>>" +retString );
if (retString == null || retString.trim().length() == 0) { if (retString == null || retString.trim().length() == 0) {
System.out.println("RetString>>>>>>>" +retString );
InvAcct invAcct = new InvAcct(); InvAcct invAcct = new InvAcct();
retString = invAcct.acctPoRcpt(tranId, conn); retString = invAcct.acctPoRcpt(tranId, conn);
System.out.println("RetString1>>>>>>>" +retString );
if (retString != null if (retString != null
&& "CREATE-VOUCHER".equals(retString.trim())) { && "CREATE-VOUCHER".equals(retString.trim())) {
CreatePoRcpVoucher createVouc = new CreatePoRcpVoucher(); CreatePoRcpVoucher createVouc = new CreatePoRcpVoucher();
retString = createVouc.createPoRcpVoucher(tranId, retString = createVouc.createPoRcpVoucher(tranId,
xtraParams, conn); xtraParams, conn);
System.out.println("RetString2>>>>>>>" +retString );
} else if (retString != null && retString.trim().length() > 0) { } else if (retString != null && retString.trim().length() > 0) {
retString = itmDBAccessLocal.getErrorString("", retString, retString = itmDBAccessLocal.getErrorString("", retString,
""); "");
System.out.println("RetString3>>>>>>>" +retString );
} }
}
else if(( errcode == null || errcode.trim().length() == 0 ) && (err == null || err.trim().length() == 0 ) )
else if(( errcode == null || errcode.trim().length() == 0 ) && (err == null || err.trim().length() == 0 ) &&(retString == null || retString.trim().length() == 0) )
{ {
System.out.println("Voucher Created1"); System.out.println("Voucher Created1");
sql="select count(1) AS count1 from pord_pay_term where purc_order = ? and rel_agnst = '02'"; sql="select count(1) AS count1 from pord_pay_term where purc_order = ? and rel_agnst = '02'";
...@@ -865,6 +872,9 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, ...@@ -865,6 +872,9 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal,
pstmtSql = null; pstmtSql = null;
} }
}
/* /*
* // not required for Taro to be done later sql = * // not required for Taro to be done later sql =
* "SELECT SALE_ORDER FROM PORDER A, PORCP B WHERE A.PURC_ORDER = B.PURC_ORDER AND B.TRAN_ID = ? " * "SELECT SALE_ORDER FROM PORDER A, PORCP B WHERE A.PURC_ORDER = B.PURC_ORDER AND B.TRAN_ID = ? "
......
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