Commit e360a2b7 authored by smanohar's avatar smanohar

Changes in accounting of service charge GRN

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211319 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 143e5d9b
...@@ -219,10 +219,24 @@ public class InvAcct ...@@ -219,10 +219,24 @@ public class InvAcct
errString = errCode; errString = errCode;
return errString;*/ return errString;*/
//Changes by mayur on 12-June-2018----[start] //Changes by mayur on 12-June-2018----[start]
// 05-Nov-2019 Manoharan invOnline should be made Y as inventory accounting is taking place for this series to be updated in porcp table
invOnline = "N";
sql = "update porcp set acct_inv_online = ?, acct_porcp_online = ? "
+ " where tran_id = ? ";
pstmtUpd = conn.prepareStatement(sql);
pstmtUpd.setString(1,invOnline);
pstmtUpd.setString(2,vouchOnLine);
pstmtUpd.setString(3,tranId);
pstmtUpd.executeUpdate();
pstmtUpd.close();
pstmtUpd = null;
// end 05-Nov-2019 Manoharan invOnline should be made Y as inventory accounting is taking place for this series to be updated in porcp table
return ""; return "";
//Changes by mayur on 12-June-2018----[end] //Changes by mayur on 12-June-2018----[end]
} }
} }
//Added by Pavan R on 30/NOV/17 Start //Added by Pavan R on 30/NOV/17 Start
int count=0; int count=0;
sql = " select count(*) from siteitem where site_code = ? and ITEM_CODE IN (SELECT ITEM_CODE FROM PORCPDET )"; sql = " select count(*) from siteitem where site_code = ? and ITEM_CODE IN (SELECT ITEM_CODE FROM PORCPDET )";
...@@ -291,6 +305,10 @@ public class InvAcct ...@@ -291,6 +305,10 @@ public class InvAcct
} }
if ("Y".equals(invOnline) ||("S".equals(invOnline) && bExit != true)) if ("Y".equals(invOnline) ||("S".equals(invOnline) && bExit != true))
{ {
// 05-Nov-2019 Manoharan invOnline should be made Y as inventory accounting is taking place for this series to be updated in porcp table
invOnline = "Y";
// end 05-Nov-2019 Manoharan invOnline should be made Y as inventory accounting is taking place for this series to be updated in porcp table
sql = "SELECT FIN_ENTITY FROM SITE WHERE SITE_CODE = ?"; sql = "SELECT FIN_ENTITY FROM SITE WHERE SITE_CODE = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCode); pstmt.setString(1,siteCode);
......
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