Commit 838a394f authored by ppatro's avatar ppatro

update balance quantity in wave and case transfer no of article issue


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92042 ce508802-f39f-4f6c-b175-0d175dae99d5
parent eddb12ad
......@@ -215,7 +215,9 @@ public class CaseTransferPos extends ValidatorEJB implements CaseTransferPosLoca
rs.close();
rs = null;
sSQL = "UPDATE DESPATCHDET SET QUANTITY = QUANTITY - ?, NO_ART = 1, GROSS_WEIGHT = GROSS_WEIGHT - ?, TARE_WEIGHT = TARE_WEIGHT - ?, "
//Changed as per Manohran sir on 25/10/12 for No Of articale should be NO_ART = NO_ART - 1
//sSQL = "UPDATE DESPATCHDET SET QUANTITY = QUANTITY - ?, NO_ART = 1, GROSS_WEIGHT = GROSS_WEIGHT - ?, TARE_WEIGHT = TARE_WEIGHT - ?, "
sSQL = "UPDATE DESPATCHDET SET QUANTITY = QUANTITY - ?, NO_ART = NO_ART - 1, GROSS_WEIGHT = GROSS_WEIGHT - ?, TARE_WEIGHT = TARE_WEIGHT - ?, "
+ " NETT_WEIGHT = NETT_WEIGHT - ? , QUANTITY__STDUOM = QUANTITY__STDUOM - ? WHERE DESP_ID = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sSQL);
pstmt.setDouble(1,caseQty);
......
......@@ -1074,7 +1074,10 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
//Added by Chandni 1-june-2012 to add bal_qty field .
//bal_qty
sordItemQty= rs.getDouble(8);
balStk = balStockQtyTemp - sordItemQty ;
//Changed By Pragyan 25/10/12 it should always reduce the pendQty
//pendQty
//balStk = balStockQtyTemp - sordItemQty ;
balStk = balStockQtyTemp - pendQty ;
System.out.println("balStk ::"+balStk);
if(balStk >= 0)
{
......@@ -11582,7 +11585,7 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
pstmtRplStk.setString(1,replRefPNDId);
pstmtRplStk.setString(7,pndLoc);
pstmtRplStk.setString(12,replRefDeepId);
pstmtRplStk.setInt(13, 0);
pstmtRplStk.setInt(13, rptr +1);
pstmtRplStk.setString(15,docLoc);
pstmtRplStk.addBatch();
updateCartonMaster(replRefPNDId, (rptr +1),Double.parseDouble("1"),ptcn,"S-DOC", xtraParams, conn);
......
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