Commit 360ece2c authored by ppatro's avatar ppatro

Case Transfer /shipment and wavgenration report preview bug


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92024 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c3eaf869
......@@ -224,7 +224,7 @@ public class CaseTransferPos extends ValidatorEJB implements CaseTransferPosLoca
// 2. insert a new record in despatch det
sSQL = "UPDATE DESPATCHDET SET QUANTITY = QUANTITY - ?, NO_ART = 1, GROSS_WEIGHT = GROSS_WEIGHT - ?, TARE_WEIGHT = TARE_WEIGHT - ?, "
+ " NET_WEIGHT = NETT_WEIGHT - ? , QUANTITY__STDUOM = QUANTITY__STDUOM - ? WHERE DESP_ID = ? AND LINE_NO = ?";
+ " NETT_WEIGHT = NETT_WEIGHT - ? , QUANTITY__STDUOM = QUANTITY__STDUOM - ? WHERE DESP_ID = ? AND LINE_NO = ?";
pstmt = conn.prepareStatement(sSQL);
pstmt.setDouble(1,caseQty);
pstmt.setDouble(2,caseGrossWeight);
......
......@@ -177,7 +177,8 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
//errList.add(errString);
// check digit to be removed from pro_no before update
if(proNo.length() > tranProNo.length())
//if(proNo.length() > tranProNo.length())
if((tranProNo != null && proNo != null) && proNo.length() > tranProNo.length())
{
proNo = proNo.substring(0,tranProNo.length());
}
......
......@@ -18288,7 +18288,8 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
argMap = jrGenerator.createArgMap(xsdString);
System.out.println("TreeMap:::->"+argMap);
//outputFilename = reportObjName.trim() + chgUser + new Random().nextInt();
outputFilename = chgUser + "_" + saleOrder+"_"+waveId;
//outputFilename = chgUser + "_" + saleOrder+"_"+waveId;
outputFilename = chgUser + "_" + saleOrder+"_"+waveId+"_"+ new Random().nextInt();
jrGenerator.createReport(reportObjName , argMap, xsdParser, chgUser, outputFilename, conn);
}
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