Commit 0d28f730 authored by vvengurlekar's avatar vvengurlekar

MiscVoucherIC.java - changes done to set site_code__pay on itemchange of sundry code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196999 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 796a84a9
...@@ -3184,7 +3184,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -3184,7 +3184,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
lsSiteCodePay=findValue(conn, "site_code__pay" , "site_strg_customer", "site_code","sc_code", siteCode,sundryCode); lsSiteCodePay=findValue(conn, "site_code__pay" , "site_strg_customer", "site_code","sc_code", siteCode,sundryCode);
if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0) if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0)
{ {
lsSiteCodePay= findValue(conn, "site_code__pay" , "site_strg_customer", "sc_code", sundryCode); //Commented and added by Varsha V on 11-02-19 for taking site_code__pay
//lsSiteCodePay= findValue(conn, "site_code__pay" , "site_strg_customer", "sc_code", sundryCode);
lsSiteCodePay= findValue(conn, "site_code__pay" , "strg_customer", "sc_code", sundryCode);
} }
} }
else if("B".equalsIgnoreCase(sundryType)) else if("B".equalsIgnoreCase(sundryType))
...@@ -3469,7 +3471,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -3469,7 +3471,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
lsSiteCodePay=findValue(conn, "site_code__pay" , "SITE_SALES_PERS", "site_code","sales_pers", siteCode,sundryCode); lsSiteCodePay=findValue(conn, "site_code__pay" , "SITE_SALES_PERS", "site_code","sales_pers", siteCode,sundryCode);
if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0) if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0)
{ {
lsSiteCodePay= findValue(conn, "site_code__pay" , "SITE_SALES_PERS", "sales_pers", sundryCode); //Commented and added by Varsha V on 11-02-19 for taking site_code__pay
//lsSiteCodePay= findValue(conn, "site_code__pay" , "SITE_SALES_PERS", "sales_pers", sundryCode);
lsSiteCodePay= findValue(conn, "site_code__pay" , "SALES_PERS", "sales_pers", sundryCode);
}//end }//end
} }
else if("T".equalsIgnoreCase(sundryType)) else if("T".equalsIgnoreCase(sundryType))
...@@ -3511,7 +3515,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -3511,7 +3515,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
lsSiteCodePay=findValue(conn, "site_code__pay" , "site_transporter", "site_code","TRAN_CODE", siteCode,sundryCode); lsSiteCodePay=findValue(conn, "site_code__pay" , "site_transporter", "site_code","TRAN_CODE", siteCode,sundryCode);
if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0) if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0)
{ {
lsSiteCodePay= findValue(conn, "site_code__pay" , "site_transporter", "TRAN_CODE", sundryCode); //Commented and added by Varsha V on 11-02-19 for taking site_code__pay
//lsSiteCodePay= findValue(conn, "site_code__pay" , "site_transporter", "TRAN_CODE", sundryCode);
lsSiteCodePay= findValue(conn, "site_code__pay" , "transporter", "TRAN_CODE", sundryCode);
}//end }//end
//ADded by Varsha V on 27-09-18 for taking round to from sundry master //ADded by Varsha V on 27-09-18 for taking round to from sundry master
sql = "select round_off, round_to from transporter where tran_code = ? "; sql = "select round_off, round_to from transporter where tran_code = ? ";
...@@ -3615,7 +3621,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -3615,7 +3621,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
lsSiteCodePay=findValue(conn, "site_code__pay" , "site_supplier", "site_code","supp_code", siteCode,sundryCode); lsSiteCodePay=findValue(conn, "site_code__pay" , "site_supplier", "site_code","supp_code", siteCode,sundryCode);
if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0) if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0)
{ {
lsSiteCodePay= findValue(conn, "site_code__pay" , "site_supplier", "supp_code", sundryCode); //Commented and added by Varsha V on 11-02-19 for taking site_code__pay
//lsSiteCodePay= findValue(conn, "site_code__pay" , "site_supplier", "supp_code", sundryCode);
lsSiteCodePay= findValue(conn, "site_code__pay" , "supplier", "supp_code", sundryCode);
}//end }//end
//ADded by Varsha V on 27-09-18 for taking round to from sundry master //ADded by Varsha V on 27-09-18 for taking round to from sundry master
payRndOff = findValue(conn, "round_off" , "supplier", "supp_code", sundryCode); payRndOff = findValue(conn, "round_off" , "supplier", "supp_code", sundryCode);
...@@ -3644,7 +3652,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -3644,7 +3652,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
lsSiteCodePay=findValue(conn, "site_code__pay" , "SITE_TAX_AUTHORITY", "site_code","tauth_code", siteCode,sundryCode); lsSiteCodePay=findValue(conn, "site_code__pay" , "SITE_TAX_AUTHORITY", "site_code","tauth_code", siteCode,sundryCode);
if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0) if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0)
{ {
lsSiteCodePay= findValue(conn, "site_code__pay" , "SITE_TAX_AUTHORITY", "tauth_code", sundryCode); //Commented and added by Varsha V on 11-02-19 for taking site_code__pay
//lsSiteCodePay= findValue(conn, "site_code__pay" , "SITE_TAX_AUTHORITY", "tauth_code", sundryCode);
lsSiteCodePay= findValue(conn, "site_code__pay" , "TAX_AUTHORITY", "tauth_code", sundryCode);
}//end }//end
} }
else if("L".equalsIgnoreCase(sundryType)) else if("L".equalsIgnoreCase(sundryType))
...@@ -3659,7 +3669,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -3659,7 +3669,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
lsSiteCodePay=findValue(conn, "site_code__pay" , "SITE_LOANPARTY", "site_code","PARTY_CODE", siteCode,sundryCode); lsSiteCodePay=findValue(conn, "site_code__pay" , "SITE_LOANPARTY", "site_code","PARTY_CODE", siteCode,sundryCode);
if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0) if(lsSiteCodePay== null || lsSiteCodePay.trim().length() == 0)
{ {
lsSiteCodePay= findValue(conn, "site_code__pay" , "SITE_LOANPARTY", "PARTY_CODE", sundryCode); //Commented and added by Varsha V on 11-02-19 for taking site_code__pay
//lsSiteCodePay= findValue(conn, "site_code__pay" , "SITE_LOANPARTY", "PARTY_CODE", sundryCode);
lsSiteCodePay= findValue(conn, "site_code__pay" , "LOANPARTY", "PARTY_CODE", sundryCode);
}//end }//end
} }
if(!("E".equalsIgnoreCase(vouchType))) if(!("E".equalsIgnoreCase(vouchType)))
......
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