Commit d4a2bb82 authored by steurwadkar's avatar steurwadkar

Changes related to set 0 if qty_adj is null in min_rate_history table


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105516 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 31706474
......@@ -7760,7 +7760,9 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
rs = null;
}
sql = "SELECT QUANTITY, QUANTITY_ADJ FROM MIN_RATE_HISTORY WHERE DOC_KEY = ? ";
//Changed by Santosh on 05/05/2017 to set 0 if qty_adj is null
//sql = "SELECT QUANTITY, QUANTITY_ADJ FROM MIN_RATE_HISTORY WHERE DOC_KEY = ? ";
sql = "SELECT QUANTITY, CASE WHEN QUANTITY_ADJ IS NULL THEN 0 ELSE QUANTITY_ADJ END AS QUANTITY_ADJ FROM MIN_RATE_HISTORY WHERE DOC_KEY = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, docKey);
......
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