Commit 1d5a0737 authored by cpatil's avatar cpatil

modify code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100085 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a63189c7
......@@ -473,7 +473,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
cnt=0;
sql = " select count(1) from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and rtrim(fld_value) = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString( 1, chargeCode );
pstmt.setString( 1, chargeCode.trim() );
rs = pstmt.executeQuery();
if (rs.next())
{
......@@ -752,7 +752,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
pstmt.close();
pstmt = null;
System.out.println("COUNT["+cnt+"]");
if( cnt == 0 )
if( cnt > 0 )
{
errCode = "VMREFIDCNF";
errList.add(errCode);
......@@ -775,7 +775,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
pstmt.close();
pstmt = null;
System.out.println("COUNT["+cnt+"]");
if( cnt == 0 )
if( cnt > 0 )
{
errCode = "VMREFIDCNF";
errList.add(errCode);
......@@ -798,7 +798,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
pstmt.close();
pstmt = null;
System.out.println("COUNT["+cnt+"]");
if( cnt == 0 )
if( cnt > 0 )
{
errCode = "VMREFIDCNF";
errList.add(errCode);
......@@ -821,7 +821,7 @@ public class ShipmentLocIC extends ValidatorEJB implements ShipmentLocICLocal, S
pstmt.close();
pstmt = null;
System.out.println("COUNT["+cnt+"]");
if( cnt == 0 )
if( cnt > 0 )
{
errCode = "VMREFIDCNF";
errList.add(errCode);
......
......@@ -400,7 +400,9 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
pstmt1 = null;
System.out.println("@@@@@@@@tempNettWeight["+tempNettWeight+"]");
sql1 = " select nvl(sum(net_weight),0) " +
" from distord_iss where shipment_id = ? and confirmed = 'Y' ";
......@@ -416,7 +418,8 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R
rs1 = null;
pstmt1.close();
pstmt1 = null;
System.out.println("@@@@@@@@tempNetWeight["+tempNetWeight+"]");
// added cpatil for c-iss on 19/04/14
sql1 = " select nvl(sum(gross_weight),0) from CONSUME_ISS " +
......@@ -438,6 +441,7 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R
val = ( tempNettWeight + tempNetWeight + grossWeightCIss ) * chargeRate ;
System.out.println("@@@@@@ val["+val+"]chargeRate["+chargeRate+"]");
} // end if
......
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