Commit 5b1d62bf authored by praut's avatar praut

Changes done by santosh on 16-FEB-2019 to set data on 3 screen

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@197281 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 472d36ba
......@@ -26,6 +26,7 @@ import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
......@@ -5511,7 +5512,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
}
//thirdMonthDay= utlmethd.AddMonths(prdtoDateTmstmp, -3);
System.out.println("invoiceMonthsPrevious>>>>>"+invoiceMonthsPrevious);
thirdMonthDay= utlmethd.AddMonths(prdFromoDateTmstmp, invoiceMonthsPrevious);
thirdMonthDay= AddMonths(prdFromoDateTmstmp, invoiceMonthsPrevious);
//thirdMonthDay= utlmethd.AddMonths(prdFromoDateTmstmp, -3);
System.out.println("thirdMonthDay>>>>>>"+thirdMonthDay);
......@@ -7854,7 +7855,19 @@ private double GetFreeQty(String custCode,String itemCode,String itemSer,String
return sretQty ;
}
*/
//Added by santosh on 16-FEB-2019 to set addmonth.start
public java.sql.Timestamp AddMonths(java.sql.Timestamp baseDate, int noOfMonths)
{
Calendar cal = Calendar.getInstance();
cal.setTime(baseDate);
cal.add(Calendar.MONTH, noOfMonths);
java.util.Date newDate = cal.getTime();
System.out.println("@S@ inside addmonths 7866");
SimpleDateFormat sdt = new SimpleDateFormat("yyyy-MM-dd");
return java.sql.Timestamp.valueOf(sdt.format(newDate) + " 00:00:00.000");
}
//Added by santosh on 16-FEB-2019 to set addmonth.END
//Changed by dayanand on 28/02/09[ Add getObjNameFromDom() method and checkNull() method req id='WS89SUN078']start
/*private String getObjNameFromDom(Document dom,String attribute) throws RemoteException,ITMException
{
......
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