Commit e33c5d87 authored by ngadkari's avatar ngadkari

added new validation for invoice ref

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@206914 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a49a5ab0
......@@ -2212,6 +2212,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
mval3 = DistCommon.getItemSer(itemCode,
siteCode, timestamp, suppCode, "S",
conn);
mval3=checkNull(mval3);//added by nandkumar gadkari on 06/09/19
System.out.println("@@@@@1828 mval3[" + mval3
+ "]");
/*
......
......@@ -6342,6 +6342,7 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
String errorType = "";
String tranType = "";
String invoiceRef="";//added by nandkumar gadkari on 06/09/19
try
{
//Changes and Commented By Bhushan on 09-06-2016 :START
......@@ -8077,6 +8078,24 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
//Added by Nandkumar gadkari on 02/12/2016 to split quantity in multiple line as per min_rate_history[End]
}
//added by nandkumar gadkari on 06/09/19----------start------------
if( childNodeName.equalsIgnoreCase( "invoice_ref" ) )
{
invoiceRef = checkNullandTrim(genericUtility.getColumnValue("invoice_ref", dom));
lsInvoiceId = checkNullandTrim(genericUtility.getColumnValue( "invoice_id", dom ));
if(lsInvoiceId.trim().length() > 0)
{
if(!lsInvoiceId.equalsIgnoreCase(invoiceRef))
{
errCode = "VTINVINRE";
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
}
}
}
//added by nandkumar gadkari on 06/09/19----------end------------
} // end for
} //END switch
......
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