Commit c7019d0f authored by kgaikwad's avatar kgaikwad

Line number column added in the RCPDET table

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@201203 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5a277224
......@@ -2757,13 +2757,13 @@ conn = getConnection();
String cctrCodeAr = "",billDisc = "",refSer="";
double exchRateRcv = 0,discount = 0,badDebtAmt = 0,exchRate = 0,diffAmtExch = 0;
double taxAmt = 0,netAmt = 0,adjAmt = 0,rcpAmt = 0;
int count = 0;
int lineNoDet = 0;
PreparedStatement pstmt =null;
String sql = "INSERT INTO RCPDET ( TRAN_ID,REF_SER,REF_NO,REF_DATE,CURR_CODE,EXCH_RATE__RCV,"
+ "DISC_AMT,TAX_AMT,EXCH_RATE,NET_AMT,RCP_AMT,DIFF_AMT__EXCH,CUST_CODE,DUE_DATE,"
+ "ACCT_CODE__AR,CCTR_CODE__AR,BAD_DEBT_AMT,BILL_DISC,LINE_NO__REF ) "
+ "VALUES ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )";
+ "ACCT_CODE__AR,CCTR_CODE__AR,BAD_DEBT_AMT,BILL_DISC,LINE_NO__REF,LINE_NO ) "
+ "VALUES ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; ////line number column added by kailas gaikwad on 27/5/2019
//Commented by Manoj dtd 03/05/2014writeLog(filePtr,"[RCPDET SQL]:::"+sql,true);
try
......@@ -2773,7 +2773,7 @@ conn = getConnection();
{
ReceiptDetail receiptDetail = (ReceiptDetail)invoiceList.get(invlCtr);
lineNoDet++;
refNo = receiptDetail.getInvoiceId();
//Commented by Manoj dtd 03/05/2014writeLog(filePtr,"[INVOICE]"+refNo,true);
lineNo = receiptDetail.getLineNo();
......@@ -2797,8 +2797,8 @@ conn = getConnection();
diffAmtExch = receiptDetail.getAmtDiffExchRate();
refSer = receiptDetail.getRefSer();
//Commented by Manoj dtd 03/05/2014writeLog(filePtr,"[REFSER]"+refSer,true);
netAmtHdr = (netAmtHdr + netAmt);
billAmt = (billAmt + rcpAmt);
if(billDisc.equalsIgnoreCase("Y"))
......@@ -2827,7 +2827,9 @@ conn = getConnection();
pstmt.setDouble(17,badDebtAmt);
pstmt.setString(18,billDisc);
pstmt.setString(19,lineNo);
pstmt.setInt(20,lineNoDet);//line number column added by kailas gaikwad on 27/5/2019
pstmt.addBatch();
}
pstmt.executeBatch();
......
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