Commit 285a0dd5 authored by pdas's avatar pdas

REQUESTID-CO3ASUN001

ADDITION OF EXCESS SHORT QTY WITH QTY FOR ALLOCATION IN STOCK


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97858 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9047c744
...@@ -64,7 +64,7 @@ public class InvPackPos extends ValidatorEJB implements InvPackPosLocal, InvPack ...@@ -64,7 +64,7 @@ public class InvPackPos extends ValidatorEJB implements InvPackPosLocal, InvPack
{ {
String siteCode = "", itemCode = "", lineNo = "",locCode = "", lotNo = "", lotSl = ""; String siteCode = "", itemCode = "", lineNo = "",locCode = "", lotNo = "", lotSl = "";
String sql = "", line = "", tranType = "", stockOpt = "", validateStock = "", errCode = "", errString = ""; String sql = "", line = "", tranType = "", stockOpt = "", validateStock = "", errCode = "", errString = "";
double quantity = 0d; double quantity = 0d,excessShortQty = 0d;
int updateCnt = 0; int updateCnt = 0;
java.sql.Date tranDate = null; java.sql.Date tranDate = null;
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -72,7 +72,7 @@ public class InvPackPos extends ValidatorEJB implements InvPackPosLocal, InvPack ...@@ -72,7 +72,7 @@ public class InvPackPos extends ValidatorEJB implements InvPackPosLocal, InvPack
DistStkUpdLocal distStkUpd = null; DistStkUpdLocal distStkUpd = null;
NodeList hdrDom = null; NodeList hdrDom = null;
Node currDetail = null; Node currDetail = null;
String updateStatus = "",tranId = "",quantityStr = ""; String updateStatus = "",tranId = "",quantityStr = "",excessShortQtyStr = "";
try try
{ {
distStkUpd = getComponent("DistStkUpd"); distStkUpd = getComponent("DistStkUpd");
...@@ -101,7 +101,11 @@ public class InvPackPos extends ValidatorEJB implements InvPackPosLocal, InvPack ...@@ -101,7 +101,11 @@ public class InvPackPos extends ValidatorEJB implements InvPackPosLocal, InvPack
lotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no",currDetail); lotNo = GenericUtility.getInstance().getColumnValueFromNode("lot_no",currDetail);
lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",currDetail); lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",currDetail);
quantityStr = GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail); quantityStr = GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail);
excessShortQtyStr=GenericUtility.getInstance().getColumnValueFromNode("excess_short_qty",currDetail);
excessShortQtyStr = (excessShortQtyStr == null ? "0" : excessShortQtyStr.trim());
excessShortQty = Double.parseDouble(excessShortQtyStr);
quantity = Double.parseDouble(quantityStr); quantity = Double.parseDouble(quantityStr);
quantity = quantity +excessShortQty;
line = " " + lineNo; line = " " + lineNo;
strAllocate.put("tran_date",tranDate); strAllocate.put("tran_date",tranDate);
...@@ -117,6 +121,8 @@ public class InvPackPos extends ValidatorEJB implements InvPackPosLocal, InvPack ...@@ -117,6 +121,8 @@ public class InvPackPos extends ValidatorEJB implements InvPackPosLocal, InvPack
strAllocate.put("chg_user",GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"loginCode")); strAllocate.put("chg_user",GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
strAllocate.put("chg_term",GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"termId")); strAllocate.put("chg_term",GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"termId"));
strAllocate.put("chg_win","W_INV_PACK"); strAllocate.put("chg_win","W_INV_PACK");
System.out.println("alloc_qty"+ strAllocate.get("alloc_qty"));
//if (distStkUpd.updAllocTrace(strAllocate) > 0) //if (distStkUpd.updAllocTrace(strAllocate) > 0)
/*Changed by HATIM on 13/01/2006*/ /*Changed by HATIM on 13/01/2006*/
if (distStkUpd.updAllocTrace(strAllocate, conn) > 0) if (distStkUpd.updAllocTrace(strAllocate, conn) > 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