Commit b62f0bd8 authored by ssalve's avatar ssalve

Sarita: Done changes in itemchange of asset_code for site_code for gtpl point...

Sarita: Done changes in itemchange of asset_code for site_code for gtpl point no. 485 on 16 JULY 18 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187589 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 15b89317
...@@ -1299,12 +1299,15 @@ conn = getConnection(); ...@@ -1299,12 +1299,15 @@ conn = getConnection();
{ {
asstCode = genericUtility.getColumnValue("asset_code",dom); asstCode = genericUtility.getColumnValue("asset_code",dom);
tranType = genericUtility.getColumnValue("tran_type",dom1); tranType = genericUtility.getColumnValue("tran_type",dom1);
System.out.println("[Validation for asset_code is] asstCode ["+asstCode+"] \t tranType ["+tranType+"]");
if(asstCode != null && asstCode.trim().length()>0 ) if(asstCode != null && asstCode.trim().length()>0 )
{ {
//Added and commented by sarita to set site_code from asset_register if status in asset_register is [A = Active] on 16 JULY 2018 [Start]
/* sql = "select item_ser, grp_code, item_code, descr, site_code, cctr_code, "
+ "proc_date_2,tax_reco_amt from asset_register where asset_code = ?";*/
sql = "select item_ser, grp_code, item_code, descr, site_code, cctr_code, " sql = "select item_ser, grp_code, item_code, descr, site_code, cctr_code, "
+ "proc_date_2,tax_reco_amt from asset_register where asset_code = ?"; + "proc_date_2,tax_reco_amt from asset_register where status = 'A' and asset_code = ?";
//Added and commented by sarita to set site_code from asset_register if status in asset_register is [A = Active] on 16 JULY 2018 [end]
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1,asstCode); pstmt.setString(1,asstCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -1323,9 +1326,9 @@ conn = getConnection(); ...@@ -1323,9 +1326,9 @@ conn = getConnection();
rs.close(); rs.close();
pstmt = null; pstmt = null;
rs = null; rs = null;
getAcctCctrPl = finCommon.getAcctDetrTtype(itemCode, itemSer, "FA-PL", tranType, conn); getAcctCctrPl = finCommon.getAcctDetrTtype(itemCode, itemSer, "FA-PL", tranType, conn);
if(getAcctCctrPl.equals(" , ") || getAcctCctrPl.equals(",")) if(getAcctCctrPl.equals(" , ") || getAcctCctrPl.equals(","))
{ {
acctCodePl = ""; acctCodePl = "";
......
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