Commit 286cb5c7 authored by steurwadkar's avatar steurwadkar

Min Rate insert for quantity and quantity_adj


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104309 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 16fedc73
...@@ -4038,7 +4038,7 @@ public class PostOrderActivity { ...@@ -4038,7 +4038,7 @@ public class PostOrderActivity {
} }
} }
//Added by Santosh on 04/01/17 to get invoice qty from invoice[Start] //Added by Santosh on 04/01/17 to get invoice qty from invoice[Start]
sql = "SELECT SUM(QUANTITY) FROM INVDET WHERE INVOICE_ID = ? AND ITEM_CODE = ? GROUP BY ITEM_CODE"; sql = "SELECT SUM(QUANTITY) AS QUANTITY FROM INVDET WHERE INVOICE_ID = ? AND ITEM_CODE = ? GROUP BY ITEM_CODE";
pstmt2 = conn.prepareStatement(sql); pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, invoiceId); pstmt2.setString(1, invoiceId);
pstmt2.setString(2, itemCode); pstmt2.setString(2, itemCode);
...@@ -4074,7 +4074,7 @@ public class PostOrderActivity { ...@@ -4074,7 +4074,7 @@ public class PostOrderActivity {
rs2 = null; rs2 = null;
if (cnt == 0) if (cnt == 0)
{ {System.out.println("560101.CNT 4077 IS ["+cnt+"]");
sql = "insert into min_rate_history (doc_key, eff_cost, scheme_code, invoice_id, invoice_date, cust_code, item_code," sql = "insert into min_rate_history (doc_key, eff_cost, scheme_code, invoice_id, invoice_date, cust_code, item_code,"
+ " site_code, lot_no, returnable,reas_code, chg_date, chg_user, chg_term, quantity, quantity_adj )" + " site_code, lot_no, returnable,reas_code, chg_date, chg_user, chg_term, quantity, quantity_adj )"
+ " values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; + " values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
...@@ -4152,7 +4152,7 @@ public class PostOrderActivity { ...@@ -4152,7 +4152,7 @@ public class PostOrderActivity {
rs2 = null; rs2 = null;
if (cnt == 0) if (cnt == 0)
{ {System.out.println("560101.CNT 4155 IS ["+cnt+"]");
if (ldEffCost != 0) if (ldEffCost != 0)
{ {
sql = "insert into min_rate_history (doc_key, eff_cost, scheme_code, invoice_id, invoice_date, cust_code," sql = "insert into min_rate_history (doc_key, eff_cost, scheme_code, invoice_id, invoice_date, cust_code,"
......
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