Commit 155f7c29 authored by ngadkari's avatar ngadkari

Changes in sqls for quantity and rate update in min_rate_hostory

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214689 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 17342039
......@@ -4363,14 +4363,17 @@ public class PostOrderActivity {
}
//added by nandkumar gadkari on 14/08/19--------end---------
//added by nandkumar gadkari on 01/10/19--------start------------------for total quantity update
sql = " select SUM(quantity), Round(sum((quantity * rate) - ( ((quantity * rate)*discount)/100)) / sum(quantity),2) from invoice_trace where "
/* sql = " select SUM(quantity), Round(sum((quantity * rate) - ( ((quantity * rate)*discount)/100)) / sum(quantity),2) from invoice_trace where "
+ " invoice_id = ? and sord_no = ? and item_code = ? and lot_no = ? and line_type not in ('I','V','P') ";
*///SQL COMMENTED AND NEW ADDED BY NANDKUMAR GADKARI ON 07/01/20
sql = " select SUM(quantity), Round(sum((quantity * rate) - ( ((quantity * rate)*discount)/100)) / sum(quantity),2) from invoice_trace where "
+ " invoice_id = ? and item_code = ? and lot_no = ? and line_type not in ('I','V','P') ";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, invoiceId);
pstmt2.setString(2, refNo);
pstmt2.setString(3, itemCode);
pstmt2.setString(4, lotNo);
//pstmt2.setString(2, refNo);
pstmt2.setString(2, itemCode);
pstmt2.setString(3, lotNo);
rs2 = pstmt2.executeQuery();
if (rs2.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