Commit 3c207cd8 authored by pdas's avatar pdas

Added condition (totAllocQty >0) for Supreme.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99320 ce508802-f39f-4f6c-b175-0d175dae99d5
parent abb42b64
...@@ -161,7 +161,7 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa ...@@ -161,7 +161,7 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa
parentNodeList = dom.getElementsByTagName(detailNode); parentNodeList = dom.getElementsByTagName(detailNode);
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
length=dom.getElementsByTagName(detailNode).getLength(); length=dom.getElementsByTagName(detailNode).getLength();
System.out.println("Detail Node+++"+detailNode);
String currlineNo = ""; String currlineNo = "";
String keyString=""; String keyString="";
...@@ -230,6 +230,7 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa ...@@ -230,6 +230,7 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa
pstmt=null; pstmt=null;
} }
System.out.println("Length of for loop>>"+length);
for(int i =0; i<length ; i++) for(int i =0; i<length ; i++)
{ {
itemCode=(genericUtility.getColumnValueFromNode("item_code",dom.getElementsByTagName(detailNode).item(i))).trim(); itemCode=(genericUtility.getColumnValueFromNode("item_code",dom.getElementsByTagName(detailNode).item(i))).trim();
...@@ -311,12 +312,16 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa ...@@ -311,12 +312,16 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("Length of for loop>>"+length);
System.out.println("qtyallocation>>"+qtyAlloc);
System.out.println("totalallocation qty>>>>"+totAllocQty);
System.out.println("Qtystduom"+qtyStduom);
// 22/02/10 manoharan if allocation found in sordalloc then deallocate // 22/02/10 manoharan if allocation found in sordalloc then deallocate
//if (count > 0 ) // 04/04/12 manoharan //if (count > 0 ) // 04/04/12 manoharan
//if (qtyAlloc > 0) // 04/04/12 manoharan //if (qtyAlloc > 0) // 04/04/12 manoharan
if(qtyAlloc >= totAllocQty)//01/11/2012 manoj sharma for deallocation if((qtyAlloc >= totAllocQty) && (totAllocQty >0))//01/11/2012 manoj sharma for deallocation
//changed to qtyAlloc >=totAllocQty from qtyAlloc > totAllocQty by Priyanka Das 09/11/2015 //changed to qtyAlloc >=totAllocQty from qtyAlloc > totAllocQty by Priyanka Das 09/11/2015
//Added (totAllocQty >0) condition by Priyanka Das 02/12/2015
{ {
if (qtyAlloc - qtyStduom <= 0) if (qtyAlloc - qtyStduom <= 0)
{ {
......
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