Commit 44410609 authored by dpawar's avatar dpawar

added message code for channel part.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96405 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a79a2e53
...@@ -269,7 +269,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -269,7 +269,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
ChanPart=ChanPart ==null ? "N" : ChanPart.trim(); ChanPart=ChanPart ==null ? "N" : ChanPart.trim();
System.out.println("ChanPart cust----->>["+ChanPart+"]"); System.out.println("ChanPart cust----->>["+ChanPart+"]");
if("N".equalsIgnoreCase(ChanPart) || ChanPart.length() ==0 ){ if("N".equalsIgnoreCase(ChanPart) || ChanPart.length() ==0 ){
errCode = "VTCUSTCD4"; errCode = "VTCUSTCD9"; //The Customer should be channel partner Y and available N !
errString = getErrorString("sale_order_no",errCode,userId); errString = getErrorString("sale_order_no",errCode,userId);
break; break;
} }
...@@ -1318,7 +1318,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -1318,7 +1318,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
{ {
String lineNoAdd="",lnNoSord="",quantity="",rate1="",conQtyStd="",itemDescr="",itemCodeOrd=""; String lineNoAdd="",lnNoSord="",quantity="",rate1="",conQtyStd="",itemDescr="",itemCodeOrd="";
String unitRate="",taxClass="",taxChap="",taxEnv="",netTotAmt="",quntyStduom="",avalyn="",siteCodeMfg="", String unitRate="",taxClass="",taxChap="",taxEnv="",netTotAmt="",quntyStduom="",avalyn="",siteCodeMfg="",
siteCodeDet="",unitStd="", noArt="", convRtuomStduom="",netAmt="",rateStduom=""; siteCodeDet="",unitStd="", noArt="", convRtuomStduom="",netAmt="",rateStduom="",packInstr="";
String expLev="1."; String expLev="1.";
System.out.println("Form 3 itm_default_add called................."); System.out.println("Form 3 itm_default_add called.................");
int lineNo1=0; int lineNo1=0;
...@@ -1420,7 +1420,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -1420,7 +1420,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
//Addd New End //Addd New End
sql = "select loc_code,lot_no,item_code,quantity,gross_weight,net_weight,tare_weight,no_art," sql = "select loc_code,lot_no,item_code,quantity,gross_weight,net_weight,tare_weight,no_art,pack_instr,dimension,"
+ "hold_qty,alloc_qty,site_code__mfg,mfg_date,exp_date,retest_date from stock where site_code = ? and lot_sl = ? and quantity > 0"; + "hold_qty,alloc_qty,site_code__mfg,mfg_date,exp_date,retest_date from stock where site_code = ? and lot_sl = ? and quantity > 0";
pstmt1=conn.prepareStatement(sql); pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,siteCodeL); pstmt1.setString(1,siteCodeL);
...@@ -1447,6 +1447,9 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -1447,6 +1447,9 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
expiryDate=rs1.getDate("exp_date"); expiryDate=rs1.getDate("exp_date");
retestDate=rs1.getDate("retest_date"); retestDate=rs1.getDate("retest_date");
packInstr = checkNull(rs1.getString("pack_instr"));
dimension = checkNull(rs1.getString("dimension"));
} }
pstmt1.close(); pstmt1.close();
rs1.close(); rs1.close();
...@@ -1472,6 +1475,10 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -1472,6 +1475,10 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
valueXmlString.append("<lot_no><![CDATA["+ lotNo+"]]></lot_no>"); valueXmlString.append("<lot_no><![CDATA["+ lotNo+"]]></lot_no>");
valueXmlString.append("<no_art><![CDATA["+ noOfArt+"]]></no_art>"); valueXmlString.append("<no_art><![CDATA["+ noOfArt+"]]></no_art>");
valueXmlString.append("<loc_code><![CDATA["+ locCode+"]]></loc_code>"); valueXmlString.append("<loc_code><![CDATA["+ locCode+"]]></loc_code>");
valueXmlString.append("<pack_instr><![CDATA["+ packInstr+"]]></pack_instr>");
valueXmlString.append("<dimension><![CDATA["+ dimension+"]]></dimension>");
if("Y".equalsIgnoreCase(avalyn)){ if("Y".equalsIgnoreCase(avalyn)){
actualQty=squantity - allocQty; actualQty=squantity - allocQty;
}else{ }else{
......
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