Commit 8ca20054 authored by arawankar's avatar arawankar

Changes made in POrderIC.java

1.Indent quantity same as porder quantity

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182174 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1fee9021
...@@ -10991,7 +10991,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -10991,7 +10991,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
if (purcOrder == null) { if (purcOrder == null) {
purcOrder = "@@@"; purcOrder = "@@@";
} }
curordqty = Double.parseDouble(qtyStduom == "" ? "0" : qtyStduom);
if (indNo != null && indNo.trim().length() > 0) { if (indNo != null && indNo.trim().length() > 0) {
parentNodeList = dom.getElementsByTagName("Detail" parentNodeList = dom.getElementsByTagName("Detail"
+ currentFormNo); + currentFormNo);
...@@ -11000,7 +11000,8 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -11000,7 +11000,8 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
for (int ctr1 = 0; ctr1 < childNodeListLength; ctr1++) { for (int ctr1 = 0; ctr1 < childNodeListLength; ctr1++) {
indNoTemp = checkNull( //Modified by Anjali R. on[16/03/2018][TO take current line number values][Start]
/*indNoTemp = checkNull(
genericUtility.getColumnValue("ind_no", dom)) genericUtility.getColumnValue("ind_no", dom))
.trim(); .trim();
lineNoTemp = checkNull( lineNoTemp = checkNull(
...@@ -11012,14 +11013,29 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -11012,14 +11013,29 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
&& ! lineNoTemp.equalsIgnoreCase(lineNo)) { && ! lineNoTemp.equalsIgnoreCase(lineNo)) {
qtystdTemp = checkNull( qtystdTemp = checkNull(
genericUtility.getColumnValue( genericUtility.getColumnValue(
"quantity__stduom", dom)).trim(); "quantity__stduom", dom)).trim();*/
qtystdTemp = "0";
indNoTemp = checkNull(genericUtility.getColumnValueFromNode("ind_no", parentNode));
System.out.println("current indent number --[" + indNoTemp + "]");
lineNoTemp = checkNull(genericUtility.getColumnValueFromNode("line_no", parentNode));
System.out.println("current line_no --[" + lineNoTemp + "]");
if (indNoTemp != null && indNoTemp.trim().equalsIgnoreCase(indNo.trim())
&& !lineNoTemp.trim().equalsIgnoreCase(lineNo.trim()))
{
qtystdTemp = checkNull(genericUtility.getColumnValueFromNode("quantity__stduom", parentNode));
System.out.println("current qtystdTemp----[" + qtystdTemp + "]");
} }
if (qtystdTemp == null) { /*if (qtystdTemp == null) {
qtystdTemp = "0"; qtystdTemp = "0";
} }
curordqty = Double.parseDouble(qtyStduom == "" ? "0" : qtyStduom) curordqty = Double.parseDouble(qtyStduom == "" ? "0" : qtyStduom)
+ Double.parseDouble(qtystdTemp == "" ? "0" : qtystdTemp); + Double.parseDouble(qtystdTemp == "" ? "0" : qtystdTemp);*/
System.out.println("curordqty--[" + curordqty + "]qtystdTemp--[" + qtystdTemp + "]");
curordqty = curordqty + Double.parseDouble(qtystdTemp == "" ? "0" : qtystdTemp);
//Modified by Anjali R. on[16/03/2018][TO take current line number values][End]
} }
sql = " select (case when quantity__stduom is null then 0 else quantity__stduom end),(case when ord_qty is null then 0 else ord_qty end)" sql = " select (case when quantity__stduom is null then 0 else quantity__stduom end),(case when ord_qty is null then 0 else ord_qty end)"
......
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