Commit 24208b80 authored by smestry's avatar smestry

Updated the code for stockAmd to display blank errCode.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104621 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 150385bd
...@@ -660,8 +660,29 @@ public class StockAmdIC extends ValidatorEJB implements StockAmdICLocal, StockAm ...@@ -660,8 +660,29 @@ public class StockAmdIC extends ValidatorEJB implements StockAmdICLocal, StockAm
ls_loc_code = checkNullAndTrim(genericUtility.getColumnValue("loc_code", dom)); ls_loc_code = checkNullAndTrim(genericUtility.getColumnValue("loc_code", dom));
ls_lot_no = checkNullAndTrim(genericUtility.getColumnValue("lot_no", dom)); ls_lot_no = checkNullAndTrim(genericUtility.getColumnValue("lot_no", dom));
ls_lot_sl = checkNullAndTrim(genericUtility.getColumnValue("lot_sl", dom)); ls_lot_sl = checkNullAndTrim(genericUtility.getColumnValue("lot_sl", dom));
if(ls_itemcode.length() == 0 || ls_sitecode.length() == 0 || ls_loc_code.length() == 0 || ls_lot_no.length() == 0 || ls_lot_sl.length() == 0) if(ls_itemcode.length() == 0)
{
errCode = "VMITEM1";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
break;
}
else if(ls_sitecode.length() == 0)
{
errCode = "VMSITE";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
break;
}
else if(ls_loc_code.length() == 0)
{
errCode = "VTLOCCD";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
break;
}
else if(ls_lot_no.length() == 0 || ls_lot_sl.length() == 0)
{ {
errCode = "VTNOSTOCK"; errCode = "VTNOSTOCK";
errList.add( errCode ); errList.add( errCode );
...@@ -709,7 +730,6 @@ public class StockAmdIC extends ValidatorEJB implements StockAmdICLocal, StockAm ...@@ -709,7 +730,6 @@ public class StockAmdIC extends ValidatorEJB implements StockAmdICLocal, StockAm
break; break;
} }
} }
} }
break; break;
......
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