Commit 8a615a51 authored by manohar's avatar manohar

rate__clg should not be negative - validation added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94280 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5c24f27a
......@@ -6123,6 +6123,21 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
}//if isnull(ls_invoice_id) or len(trim(ls_invoice_id)) = 0
}//if lc_rate < 0
}
if( childNodeName.equalsIgnoreCase( "rate__clg" ))// 20/02/14 manoharan rate__clg should not be genative
{
String fldName = childNodeName.toLowerCase();
String lcRateStr = genericUtility.getColumnValue( childNodeName.toLowerCase(), dom );
lcRate = Double.parseDouble( lcRateStr == null || lcRateStr.trim().length() == 0 ? "0" : lcRateStr.trim() );
if( lcRate < 0 )
{
errCode = "VTRATE2";
//errString = getErrorString( childNodeName, errCode, userId );
//break;
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
}
}
if( childNodeName.equalsIgnoreCase( "unit" ) )
{
mVal = genericUtility.getColumnValue( "unit", dom );
......
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