Commit 8239c212 authored by msalla's avatar msalla

Future date transaction (sales order) loaded through upload utility

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@201070 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 29d0e79e
...@@ -230,13 +230,31 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -230,13 +230,31 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
if (childNodeName.equalsIgnoreCase("order_date")) { if (childNodeName.equalsIgnoreCase("order_date")) {
String orderDateStr = "", despDateNew = "", currentDateStr = "", lsContractNo = ""; String orderDateStr = "", despDateNew = "", currentDateStr = "", lsContractNo = "";
orderDateStr = checkNull(genericUtility.getColumnValue("order_date", dom)); orderDateStr = checkNull(genericUtility.getColumnValue("order_date", dom));
//changes-by-monika-23-05-2019-
siteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
//end
System.out.println("@V@ orderDateStr====[" + orderDateStr + "]"); System.out.println("@V@ orderDateStr====[" + orderDateStr + "]");
if (orderDateStr == null || orderDateStr.length() == 0) { if (orderDateStr == null || orderDateStr.length() == 0) {
errCode = "VTORDDT"; errCode = "VTORDDT";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
//changes made-by-MOnika-on-23-05-2019
else
{
orderDate= Timestamp.valueOf(genericUtility.getValidDateString(orderDateStr,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+" 00:00:00.0");
errCode=finCommon.nfCheckPeriod("SAL",orderDate,siteCode, conn);
System.out.println("@@@@ orderDate["+orderDate+"]errCode["+errCode+"]");
if (errCode != null && errCode.trim().length() > 0)
{
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
//end
//end
lsContractNo = checkNull(genericUtility.getColumnValue("contract_no", dom)); lsContractNo = checkNull(genericUtility.getColumnValue("contract_no", dom));
if (lsContractNo != null && lsContractNo.trim().length() > 0) { if (lsContractNo != null && lsContractNo.trim().length() > 0) {
orderDate = Timestamp.valueOf( orderDate = Timestamp.valueOf(
......
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