Commit fde17260 authored by cpatil's avatar cpatil

write tran id into file


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100186 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ad931270
......@@ -286,7 +286,7 @@ public class ReceiptAutoConfPOS extends ValidatorEJB implements ReceiptAutoConfP
double rcpAmt = 0, finChg = 0, diffAmtExchDet = 0, diffAmtExchAdv = 0, diffAmtExchEpc = 0, newAdvAmt = 0;
double billAmtDet = 0, advAmtHdr = 0, adjAmtAdv = 0, bdAmt = 0, advAmtRact = 0, othAmt = 0.0, exchRateHdr = 0.0, taxAmt = 0, amount = 0.0, othAmttemp = 0.0;
int cnt = 0;
int cnt = 0,cnt2 = 0;;
try {
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -297,6 +297,22 @@ public class ReceiptAutoConfPOS extends ValidatorEJB implements ReceiptAutoConfP
currCode = GenericUtility.getInstance().getColumnValue("curr_code",
dom);
sql = "select count(1) from receipt WHERE tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt2 = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("@@@@@@@ tranId["+tranId+"]cnt2["+cnt2+"]");
fos1.write(("Tran Id :[" + tranId +"]:: cnt2 :["+cnt2+"]\r\n\n").getBytes());
sql = "select adv_amt, exch_rate,chq_amt,curr_Code from receipt WHERE tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
......
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