Commit 9ed1f87c authored by smisra's avatar smisra

changed error message numbers that are already existing in standard DB


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91411 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a3acdda7
...@@ -108,7 +108,7 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList ...@@ -108,7 +108,7 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList
if ( custCode == null || custCode.trim().length() == 0 ) if ( custCode == null || custCode.trim().length() == 0 )
{ {
System.out.println("Customer Code is null"); System.out.println("Customer Code is null");
errList.add( "CCNUL" ); errList.add( "VECUST2" );
errFields.add( "cust_code" ); errFields.add( "cust_code" );
} }
else // if( edit_flag == "A" || edit_flag.equalsIgnoreCase( "A" )) else // if( edit_flag == "A" || edit_flag.equalsIgnoreCase( "A" ))
...@@ -121,8 +121,8 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList ...@@ -121,8 +121,8 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList
{ {
if(!rs.getBoolean(1)) if(!rs.getBoolean(1))
{ {
System.out.println("Wrong Customer code"); System.out.println("Customer code not exist");
errList.add( "CCNE" ); errList.add( "VTMSG" );
errFields.add( "cust_code" ); errFields.add( "cust_code" );
} }
} }
...@@ -152,7 +152,7 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList ...@@ -152,7 +152,7 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList
{ {
if(rs.getBoolean(1)) if(rs.getBoolean(1))
{ {
System.out.println("This combination already exist"); System.out.println("Customer code and Order type combination already exist");
errList.add( "CCOTAE" ); errList.add( "CCOTAE" );
errFields.add( "order_type" ); errFields.add( "order_type" );
} }
...@@ -169,7 +169,7 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList ...@@ -169,7 +169,7 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList
if ( priceList == null || priceList.trim().length() == 0 ) if ( priceList == null || priceList.trim().length() == 0 )
{ {
System.out.println("priceList is coming as null"); System.out.println("priceList is coming as null");
errList.add( "PLNUL1" ); errList.add( "UDPRLTNUL" );
errFields.add( "price_list" ); errFields.add( "price_list" );
} }
else else
...@@ -182,8 +182,8 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList ...@@ -182,8 +182,8 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList
{ {
if(!rs.getBoolean(1)) if(!rs.getBoolean(1))
{ {
System.out.println("Wrong Pice List"); System.out.println("Pice List Not found");
errList.add( "PLNE" ); errList.add( "VMPRLIST" );
errFields.add( "price_list" ); errFields.add( "price_list" );
} }
} }
...@@ -199,7 +199,7 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList ...@@ -199,7 +199,7 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList
if ( priceListClg == null || priceListClg.trim().length() == 0 ) if ( priceListClg == null || priceListClg.trim().length() == 0 )
{ {
System.out.println("priceListClg is coming as null"); System.out.println("priceListClg is coming as null");
errList.add( "PLCNUL1" ); errList.add( "UDPRLTNUL" );
errFields.add( "price_list__clg" ); errFields.add( "price_list__clg" );
} }
else else
...@@ -212,8 +212,8 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList ...@@ -212,8 +212,8 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList
{ {
if(!rs.getBoolean(1)) if(!rs.getBoolean(1))
{ {
System.out.println("Wrong Pice List Clg"); System.out.println("Price List not found");
errList.add( "PLCNE" ); errList.add( "VMPRLIST" );
errFields.add( "price_list__clg" ); errFields.add( "price_list__clg" );
} }
} }
......
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