Commit 1573bf16 authored by manohar's avatar manohar

Indetail default mfg_date and exp_date set if the disparm variable...

Indetail default mfg_date and exp_date set if the disparm variable DEFAULT_EXP_MONTHS is defined else not set


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93994 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1e769e9a
......@@ -1033,14 +1033,17 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
else
{
months = Integer.parseInt(valStr.trim());
System.out.println("months = "+months );
}
System.out.println("months = "+months );
// 12/12/13 manoharan if this variable is defined then only set the dates by default
if (!"NULLFOUND".equals(valStr))
{
valueXmlString.append("<mfg_date>").append("<![CDATA["+simpleDateFormat.format(new Date(2012, 00,01))+"]]>").append("</mfg_date>");//added by kunal on 7/12/12 as per Manoj instruction
valueXmlString.append("<exp_date>").append("<![CDATA["+simpleDateFormat.format(addMonths(new Date(2012, 00,01),months))+"]]>").append("</exp_date>");//added by kunal on 7/12/12 as per Manoj instruction
}
System.out.println("reas_code"+reasonCode);
valueXmlString.append("<reas_code>").append("<![CDATA["+reasonCode+"]]>").append("</reas_code>"); //added by kunal on 24/12/12 as per Manoj instruction
}
......
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