Commit 10f9dea6 authored by vlagad's avatar vlagad

While generating transaction id for stock transfer in Near expiry, site code...

While generating transaction id for stock transfer in Near expiry, site code and transaction date are not assigned during transaction id generation

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196456 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b596413d
......@@ -700,7 +700,12 @@ public class NearExpiryPrc extends ProcessEJB implements NearExpiryPrcLocal,Near
pstmtDet = conn.prepareStatement(insertSql);
//generate the tran id for w_stock_transfer
tranID = generateTranId( "w_stock_transfer", conn );
//Added by Vikas L on 31.1.2019 [start]
//tranID = generateTranId( "w_stock_transfer", conn ); Commented by Vikas L on 31-1-2019
SimpleDateFormat sdfAppl = new SimpleDateFormat(genericUtility.getApplDateFormat());
String currDateStr = sdfAppl.format(currDate);
tranID = generateTranId( "w_stock_transfer",siteCode,currDateStr, conn );
//Added by Vikas L on 31.1.2019 [end]
//Insert into header table i.e stock_transfer
pstmtHdr.setString( 1, tranID );
......
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