Commit a02dbcfc authored by prane's avatar prane

chnaged validation parameter to E for tax_environment

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@208078 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d2be7703
...@@ -1141,7 +1141,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1141,7 +1141,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
if (tranDate != null && tranDate.trim().length() > 0) { if (tranDate != null && tranDate.trim().length() > 0) {
tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+ " 00:00:00.0"); tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+ " 00:00:00.0");
} }
errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"F", conn ); errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"E", conn );
System.out.println("TaxEnvironment::Case1["+taxEnv+"]errCode["+errCode+"]"); System.out.println("TaxEnvironment::Case1["+taxEnv+"]errCode["+errCode+"]");
if( errCode != null && errCode.trim().length() > 0 ) { if( errCode != null && errCode.trim().length() > 0 ) {
errList.add(errCode); errList.add(errCode);
...@@ -1532,7 +1532,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1532,7 +1532,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
if (tranDate != null && tranDate.trim().length() > 0) { if (tranDate != null && tranDate.trim().length() > 0) {
tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+ " 00:00:00.0"); tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+ " 00:00:00.0");
} }
errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"F", conn ); errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"E", conn );
System.out.println("TaxEnvironment::Case2["+taxEnv+"]errCode["+errCode+"]"); System.out.println("TaxEnvironment::Case2["+taxEnv+"]errCode["+errCode+"]");
if( errCode != null && errCode.trim().length() > 0 ) { if( errCode != null && errCode.trim().length() > 0 ) {
errList.add(errCode); errList.add(errCode);
...@@ -2238,7 +2238,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -2238,7 +2238,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
if (tranDate != null && tranDate.trim().length() > 0) { if (tranDate != null && tranDate.trim().length() > 0) {
tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+ " 00:00:00.0"); tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+ " 00:00:00.0");
} }
errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"F", conn ); errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"E", conn );
System.out.println("TaxEnvironment::Case3["+taxEnv+"]errCode["+errCode+"]"); System.out.println("TaxEnvironment::Case3["+taxEnv+"]errCode["+errCode+"]");
if( errCode != null && errCode.trim().length() > 0 ) { if( errCode != null && errCode.trim().length() > 0 ) {
errList.add(errCode); errList.add(errCode);
......
...@@ -804,7 +804,7 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc ...@@ -804,7 +804,7 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
{ {
//Pavan R 17sept19 start[to validate tax environment] //Pavan R 17sept19 start[to validate tax environment]
//errCode = finCommon.checkTaxEnvStatus(taxEnv, tranDateTm, conn); //errCode = finCommon.checkTaxEnvStatus(taxEnv, tranDateTm, conn);
errCode = finCommon.checkTaxEnvStatus(taxEnv, tranDateTm, "F", conn); errCode = finCommon.checkTaxEnvStatus(taxEnv, tranDateTm, "E", conn);
//Pavan R 04sept19 end[to validate tax environment] //Pavan R 04sept19 end[to validate tax environment]
if(errCode != null && errCode.trim().length() > 0) if(errCode != null && errCode.trim().length() > 0)
{ {
......
...@@ -916,7 +916,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -916,7 +916,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{ {
tranDateS=this.genericUtility.getColumnValue("tran_date", dom); tranDateS=this.genericUtility.getColumnValue("tran_date", dom);
tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDateS,this.genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDateS,this.genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"F", conn ); errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"E", conn );
if( errCode != null && errCode.trim().length() > 0 ) { if( errCode != null && errCode.trim().length() > 0 ) {
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
...@@ -1685,7 +1685,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -1685,7 +1685,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{ {
tranDateS=this.genericUtility.getColumnValue("tran_date", dom1); tranDateS=this.genericUtility.getColumnValue("tran_date", dom1);
tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDateS,this.genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); tranDt = Timestamp.valueOf(genericUtility.getValidDateString(tranDateS,this.genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"F", conn ); errCode = finCommon.checkTaxEnvStatus( taxEnv, tranDt,"E", conn );
if( errCode != null && errCode.trim().length() > 0 ) { if( errCode != null && errCode.trim().length() > 0 ) {
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
......
...@@ -483,7 +483,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract ...@@ -483,7 +483,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
contractDate = Timestamp.valueOf(genericUtility.getValidDateString(contractDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); contractDate = Timestamp.valueOf(genericUtility.getValidDateString(contractDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
//Pavan R 17sept19 start[to validate tax environment] //Pavan R 17sept19 start[to validate tax environment]
//errCode = finCommon.checkTaxEnvStatus(taxEnv, contractDate, conn); //errCode = finCommon.checkTaxEnvStatus(taxEnv, contractDate, conn);
errCode = finCommon.checkTaxEnvStatus(taxEnv, contractDate, "F", conn); errCode = finCommon.checkTaxEnvStatus(taxEnv, contractDate, "E", conn);
//Pavan R 17sept19 end[to validate tax environment] //Pavan R 17sept19 end[to validate tax environment]
System.out.println("#### checkTaxEnvStatus::errCode["+errCode+"]"); System.out.println("#### checkTaxEnvStatus::errCode["+errCode+"]");
if (errCode != null && errCode.trim().length() > 0) if (errCode != null && errCode.trim().length() > 0)
...@@ -740,7 +740,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract ...@@ -740,7 +740,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
{ {
contractDateStr = checkNull(genericUtility.getColumnValue("contract_date", dom1)); contractDateStr = checkNull(genericUtility.getColumnValue("contract_date", dom1));
contractDate = Timestamp.valueOf(genericUtility.getValidDateString(contractDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); contractDate = Timestamp.valueOf(genericUtility.getValidDateString(contractDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
errCode = finCommon.checkTaxEnvStatus(taxEnv, contractDate, "F", conn); errCode = finCommon.checkTaxEnvStatus(taxEnv, contractDate, "E", conn);
System.out.println("#### checkTaxEnvStatus::errCode["+errCode+"]"); System.out.println("#### checkTaxEnvStatus::errCode["+errCode+"]");
if (errCode != null && errCode.trim().length() > 0) if (errCode != null && errCode.trim().length() > 0)
{ {
......
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