Commit aa9457f7 authored by manohar's avatar manohar

in case stock balance quantity is not there 0 quantity set in detail, corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96945 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b3ae64a9
...@@ -1470,10 +1470,6 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -1470,10 +1470,6 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
rs.close(); rs.close();
pstmt = null; pstmt = null;
rs = null; rs = null;
lineNo1++;
System.out.println("lineNo1 lotSl----->>["+lineNo1+"]");
valueXmlString.append("<Detail3 domID='"+lineNo1+"' objContext = '"+currentFormNo+"' selected=\"Y\">\r\n");
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>\r\n");
sql = "select loc_code,lot_no,item_code,quantity,gross_weight,net_weight,tare_weight,qty_per_art," sql = "select loc_code,lot_no,item_code,quantity,gross_weight,net_weight,tare_weight,qty_per_art,"
...@@ -1548,6 +1544,20 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -1548,6 +1544,20 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
rs1 = null; rs1 = null;
} }
lineNo1++;
System.out.println("lineNo1 lotSl----->>["+lineNo1+"]");
System.out.println("squantity------>>["+squantity+"]");
System.out.println("holdQty------>>["+holdQty+"]");
System.out.println("allocQty------>>["+allocQty+"]");
if("Y".equalsIgnoreCase(avalyn)){
actualQty=squantity - (holdQty + allocQty);
}else{
actualQty=squantity - allocQty;
}
if (actualQty > 0) // 10/12/14 manoharan this condition added
{
valueXmlString.append("<Detail3 domID='"+lineNo1+"' objContext = '"+currentFormNo+"' selected=\"Y\">\r\n");
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>\r\n");
valueXmlString.append("<line_no__sord><![CDATA["+ sOrdItemLineNo+"]]></line_no__sord>"); valueXmlString.append("<line_no__sord><![CDATA["+ sOrdItemLineNo+"]]></line_no__sord>");
valueXmlString.append("<exp_lev><![CDATA["+ expLvl+"]]></exp_lev>"); valueXmlString.append("<exp_lev><![CDATA["+ expLvl+"]]></exp_lev>");
...@@ -1574,14 +1584,6 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -1574,14 +1584,6 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
valueXmlString.append("<chg_term><![CDATA["+ chgTerm +"]]></chg_term>"); valueXmlString.append("<chg_term><![CDATA["+ chgTerm +"]]></chg_term>");
valueXmlString.append("<chg_date><![CDATA["+ currAppdate +"]]></chg_date>"); valueXmlString.append("<chg_date><![CDATA["+ currAppdate +"]]></chg_date>");
System.out.println("squantity------>>["+squantity+"]");
System.out.println("holdQty------>>["+holdQty+"]");
System.out.println("allocQty------>>["+allocQty+"]");
if("Y".equalsIgnoreCase(avalyn)){
actualQty=squantity - (holdQty + allocQty);
}else{
actualQty=squantity - allocQty;
}
System.out.println("quantity actualQty------>>["+actualQty+"]"); System.out.println("quantity actualQty------>>["+actualQty+"]");
valueXmlString.append("<quantity><![CDATA["+ actualQty+"]]></quantity>"); valueXmlString.append("<quantity><![CDATA["+ actualQty+"]]></quantity>");
...@@ -1871,13 +1873,13 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -1871,13 +1873,13 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
valueXmlString.append("<tot_net_amt><![CDATA["+ netAmt +"]]></tot_net_amt>"); valueXmlString.append("<tot_net_amt><![CDATA["+ netAmt +"]]></tot_net_amt>");
valueXmlString.append("<disc_amt><![CDATA["+ discountL +"]]></disc_amt>"); valueXmlString.append("<disc_amt><![CDATA["+ discountL +"]]></disc_amt>");
valueXmlString.append("</Detail3>");
}
//Addd New End //Addd New End
//Sale order data [END] //Sale order data [END]
valueXmlString.append("</Detail3>");
} }
......
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