Commit 93ab27b1 authored by pchavan's avatar pchavan

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200554 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 86be0188
......@@ -4474,13 +4474,13 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
suppcode = genericUtility.getColumnValue("supp_code", dom);
ldtdc1 =genericUtility.getColumnValue("dc_date", dom);
System.out.println("String dc_date is"+ldtdc1);
ldtdc1 = ldtdc1 == null ? "" : ldtdc1.trim();
ldttrandt1 =genericUtility.getColumnValue("tran_date", dom);
ldttrandt1 = ldttrandt1 == null ? "" : ldttrandt1.trim();
System.out.println("String Effdate is"+ldttrandt1);
//Added By Priyankac TO SET TRAN DATE ID CHALLAN DATE IS NULL [START]
// ldtdc1 = ldtdc1 == null ? "" : ldtdc1.trim();
ldtdc1 = ldtdc1 == null ? ldttrandt1 : ldtdc1.trim();
System.out.println("String dc_date is after null"+ldtdc1);
//Added By Priyankac TO SET TRAN DATE ID CHALLAN DATE IS NULL [END]
//Commented and Added by sarita to set add proj_code and set to header on 29 MARCH 2019 [START]
/*sql="select supp_code, tax_date, curr_code, exch_rate,cr_term,tran_code,item_ser, emp_code, trans_mode, pord_type," +
......@@ -4608,6 +4608,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//Modified by Anjali R. on [30/08/2018][To check dc_date is null][Start]
if(ldtdc1 != null && ldtdc1.trim().length() > 0)
{
System.out.println("ldtdc1"+ldtdc1);
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>");
......@@ -4621,6 +4622,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
//Modified by Azhar K. on [06-05-2019][To set tran date as effective date when dc date is null][Start]
else
{
System.out.println("ldttrandt1"+ldttrandt1);
//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>");
}
......
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