Commit 8108501c authored by kshinde's avatar kshinde

Stock option value set before locking in itmdefault_edit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@43422 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8a04d749
...@@ -1584,6 +1584,7 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte ...@@ -1584,6 +1584,7 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
} }
mfgType = checkNull(genericUtility.getColumnValue("mfg_type", dom)); mfgType = checkNull(genericUtility.getColumnValue("mfg_type", dom));
supplierSour = checkNull(genericUtility.getColumnValue("supp_sour", dom)); supplierSour = checkNull(genericUtility.getColumnValue("supp_sour", dom));
String stockOpt= checkNull(genericUtility.getColumnValue("stk_opt", dom));
if(mfgType != null && mfgType.trim().equalsIgnoreCase("D") && supplierSour != null && supplierSour.trim().equalsIgnoreCase("M")) if(mfgType != null && mfgType.trim().equalsIgnoreCase("D") && supplierSour != null && supplierSour.trim().equalsIgnoreCase("M"))
{ {
valueXmlString.append("<extra_mfg_perc protect = \"0\">").append("<![CDATA[" + "" + "]]>").append ("</extra_mfg_perc>"); valueXmlString.append("<extra_mfg_perc protect = \"0\">").append("<![CDATA[" + "" + "]]>").append ("</extra_mfg_perc>");
...@@ -1593,7 +1594,7 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte ...@@ -1593,7 +1594,7 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
valueXmlString.append("<extra_mfg_perc protect = \"1\">").append("<![CDATA[" + "" + "]]>").append ("</extra_mfg_perc>"); valueXmlString.append("<extra_mfg_perc protect = \"1\">").append("<![CDATA[" + "" + "]]>").append ("</extra_mfg_perc>");
valueXmlString.append("<extra_mfg_perc>").append("<![CDATA[" + 0 + "]]>").append("</extra_mfg_perc>"); valueXmlString.append("<extra_mfg_perc>").append("<![CDATA[" + 0 + "]]>").append("</extra_mfg_perc>");
} }
valueXmlString.append("<stk_opt protect = \"1\">").append("<![CDATA[" + "" + "]]>").append ("</stk_opt>"); valueXmlString.append("<stk_opt protect = \"1\">").append("<![CDATA[" + stockOpt + "]]>").append ("</stk_opt>");
valueXmlString.append("<tech_descr protect = \"1\">").append("<![CDATA[" + "" + "]]>").append ("</tech_descr>"); valueXmlString.append("<tech_descr protect = \"1\">").append("<![CDATA[" + "" + "]]>").append ("</tech_descr>");
} }
else if(currentColumn.trim().equalsIgnoreCase("itm_default")) else if(currentColumn.trim().equalsIgnoreCase("itm_default"))
......
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