Commit 3fe28274 authored by agaikwad's avatar agaikwad

Request_id-CO3ASUN001

Call Advance Purchase  voucher


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98166 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6277eb3e
...@@ -280,6 +280,8 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, ...@@ -280,6 +280,8 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal,
String cwipTranType = ""; String cwipTranType = "";
String tranType = ""; String tranType = "";
String saleOrder = ""; String saleOrder = "";
String err="";
String errcode="";
double qtyRcp = 0.0; double qtyRcp = 0.0;
double ordQty = 0.0; double ordQty = 0.0;
...@@ -292,6 +294,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, ...@@ -292,6 +294,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal,
long cnt = 0; long cnt = 0;
long pcnt = 0; long pcnt = 0;
long qcCnt = 0; long qcCnt = 0;
long Cnt1=0;
int updCnt; int updCnt;
...@@ -833,6 +836,35 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, ...@@ -833,6 +836,35 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal,
""); "");
} }
} }
else if(( errcode == null || errcode.trim().length() == 0 ) && (err == null || err.trim().length() == 0 ) )
{
System.out.println("Voucher Created1");
sql="select count(1) AS count1 from pord_pay_term where purc_order = ? and rel_agnst = '02'";
pstmtSql = conn.prepareStatement(sql);
pstmtSql.setString(1,purcOrder);
rs = pstmtSql.executeQuery();
if ( rs.next() )
{
Cnt1 = rs.getLong("count1");
}
if(Cnt1 >0)
{
CreatePoVoucherAdvance createVouc11 = new CreatePoVoucherAdvance();
System.out.println("Voucher Created2");
errcode = createVouc11.createPoVoucherAdv( tranId, xtraParams,conn,"PR", 0,today );
//(String tranId,String xtraParams,Connection conn,String as_flag,double ad_advperc,Date day)
}
rs.close();
rs = null;
pstmtSql.close();
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