Commit 54d16765 authored by manohar's avatar manohar

rate validation lot_no considered while calculating invoiced rate from...

rate validation lot_no considered while calculating invoiced rate from invoice_trace as in case of multiple lot_no there is a problem of calculated rate more than the return rate


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95622 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fd0563a0
...@@ -6098,12 +6098,14 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales ...@@ -6098,12 +6098,14 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
+" from invoice_trace " +" from invoice_trace "
+" where invoice_id = ? " +" where invoice_id = ? "
+" and SORD_NO = ? " // +" and SORD_NO = ? " //
+" and SORD_LINE_NO = ? " ; +" and SORD_LINE_NO = ? "
+ " and lot_no = ? "; // 14/07/14 manoharan consider lot_no as in case of issue from multiple lot_no the rate may become more
pstmt = conn.prepareStatement( sqlStr ); pstmt = conn.prepareStatement( sqlStr );
pstmt.setString( 1, lsInvoiceId ); pstmt.setString( 1, lsInvoiceId );
pstmt.setString( 2, saleOrder ); pstmt.setString( 2, saleOrder );
pstmt.setString( 3, lineNoSord ); pstmt.setString( 3, lineNoSord );
pstmt.setString( 4, lsLotNo ); // 14/07/14 manoharan consider lot_no as in case of issue from multiple lot_no the rate may become more
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if( rs.next() ) if( rs.next() )
{ {
......
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