Commit 580970ab authored by rtiwari's avatar rtiwari

CHANGE DISCOUNT AMOUNT FORMAT


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95906 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 695cf31a
......@@ -10,6 +10,7 @@ import ibase.webitm.utility.*;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import java.sql.*;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.rmi.*;
import java.util.*;
......@@ -87,6 +88,7 @@ public class ChargeBackFormAccept extends ActionHandlerEJB implements ChargeBack
String prdCode = "",statSal = "";
double amount=0,netAmt=0,totamt=0,totnetAmt=0;
Timestamp sysDate = null;
DecimalFormat df = new DecimalFormat("0.000");
try
{
connDriver = null;
......@@ -295,7 +297,7 @@ public class ChargeBackFormAccept extends ActionHandlerEJB implements ChargeBack
pStmt1.setDouble(28,rs.getDouble(28));
pStmt1.setString(29,rs.getString(29));
pStmt1.setDouble(30,rs.getDouble(30));
pStmt1.setDouble(31,rs.getDouble(31));
pStmt1.setDouble(31,Double.parseDouble(df.format(rs.getDouble(31)))); // CHANGE ON 13/08/14 BY RITESH
pStmt1.setDouble(32,rs.getDouble(32));
pStmt1.setDouble(33,rs.getDouble(33));
pStmt1.setDouble(34,rs.getDouble(34));
......
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