Commit 94b558f1 authored by mmhatre's avatar mmhatre

issue solved for 3 decimal places validation

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213555 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f617341f
......@@ -11082,15 +11082,13 @@ public class DistCommon {
System.out.println("decimalLength["+decimalLength+"]unit["+unit+"]places["+decPlaces+"]");
if(decPlaces > 0)
{
if (decimalLength > decPlaces)
if (decimalLength != decPlaces)
{
System.out.println("inside if decimal>>>>>>>");
errCode="VTUOMDEC3";
}
}
else if(decimalLength > 3)
{
System.out.println("inside else if decimal>>>>>>");
errCode="VTUOMDEC3";
}
rs.close();
......
......@@ -42,6 +42,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{
E12GenericUtility genericUtility= new E12GenericUtility();
FinCommon finCommon = new FinCommon();
DistCommon distcommon=new DistCommon();
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag,String xtraParams) throws RemoteException, ITMException
{
String errString = "";
......@@ -1769,7 +1770,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
String lcqty1="" ,lcqtystd1 ="",lcrate1="",cratestd1 ="";
String lsunit="",lsunitstd="",lsunitrate="",lsvariencetype="",lslorryno="";
int noOfParent = 0;
lsunit =checkNull(genericUtility.getColumnValue("unit", dom)); //added by manish mhatre on 16-dec-2019
quantity = checkNull(genericUtility.getColumnValue("quantity",dom));
System.out.println("quantity"+quantity);
......@@ -1921,6 +1922,16 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//}
}
//added by manish mhatre on 16-dec-2019[for allow 3 decimal places]
//start manish
errCode=distcommon.checkDecimal(qty, lsunit, conn);
if(errCode!=null && errCode.trim().length()>0)
{
errCode = "VTUOMDEC3";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
} //end manish
}
/* if isnull(ls_errcode) or len(trim(ls_errcode)) = 0 then
ls_errcode=gbf_val_tolerance()
......
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