Commit d32c4f07 authored by arawankar's avatar arawankar

PoReceiptIc.java

-Changes made to set eff_date as tran_date in case of dc_date is null and purc_ord start_from is 'D'

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200463 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 57fa4c7a
......@@ -4609,18 +4609,29 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
if(ldtdc1 != null && ldtdc1.trim().length() > 0)
{
ldtdc = Timestamp.valueOf(genericUtility.getValidDateString(ldtdc1.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0");
//Modified by Azhar K. on [06-05-2019][To set effective date when dc date is not null][Start]
valueXmlString.append("<eff_date>").append("<![CDATA["+ldtdc1+"]]>").append("</eff_date>");
//Modified by Azhar K. on [06-05-2019][To set effective date when dc date is not null][End]
}
//Modified by Anjali R. on [30/08/2018][To check dc_date is null][End]
System.out.println("ldtdc is"+ldtdc);
//valueXmlString.append("<eff_date>").append(ldtdc1).append("</eff_date>");
valueXmlString.append("<eff_date>").append("<![CDATA["+ldtdc1+"]]>").append("</eff_date>");
//valueXmlString.append("<eff_date>").append("<![CDATA["+ldtdc1+"]]>").append("</eff_date>");
//Modified by Azhar K. on [06-05-2019][To set tran date as effective date when dc date is null][Start]
else
{
//ldttrandt = Timestamp.valueOf(genericUtility.getValidDateString(ldttrandt1.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0");
valueXmlString.append("<eff_date>").append("<![CDATA["+ldttrandt1+"]]>").append("</eff_date>");
}
//Modified by Azhar K. on [06-05-2019][To set tran date as effective date when dc date is null][End]
}
else
{
ldttrandt = Timestamp.valueOf(genericUtility.getValidDateString(ldttrandt1.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0");
System.out.println("ldttrandt1 is"+ldttrandt1);
valueXmlString.append("<eff_date>").append("<![CDATA["+ldttrandt1+"]]>").append("</eff_date>");
//ldttrandt = Timestamp.valueOf(genericUtility.getValidDateString(ldttrandt1.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0");
System.out.println("ldttrandt1 is"+ldttrandt1);
valueXmlString.append("<eff_date>").append("<![CDATA["+ldttrandt1+"]]>").append("</eff_date>");
}
System.out.println("mScode"+mScode);
sql="select supp_name from supplier where supp_code =?";
......@@ -5881,8 +5892,18 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
pstmt = null;
if("D".equalsIgnoreCase(lssf))
{
System.out.println("dcDate--["+dcDate+"]tranDate--["+tranDate+"]");
//Modified by Azhar K. on [06-05-2019][To set tran date as effective date when dc date is null][Start]
if(dcDate == null || dcDate.trim().length() == 0)
{
valueXmlString.append("<eff_date><![CDATA[").append(tranDate).append("]]></eff_date>");
}
else
{
//valueXmlString.append("<eff_date>").append(checkDate(genericUtility.getColumnValue("dc_date", dom))).append("</eff_date>");
valueXmlString.append("<eff_date><![CDATA[").append( dcDate==null?"":dcDate).append("]]></eff_date>");
}
//Modified by Azhar K. on [06-05-2019][To set tran date as effective date when dc date is null][End]
}
else
{
......
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