Commit b0523b7c authored by prane's avatar prane

to close the line item once full quantity is released, also if all line items...

to close the line item once full quantity is released, also if all line items are closed close the contract. 
bug fixed in detail for rate pickup from scontract detail line wise

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@207394 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b1a885a1
......@@ -15816,7 +15816,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
System.out.println("====getContract TRY22=");
//Pavan Rane 13sep19 start[to validate closed contract if contract validy is exists.]
//sql = "select SC.contract_no, SC.line_no from scontract S, scontractdet SC where S.contract_no = SC.contract_no and S.site_code = ? and S.cust_code = ? and S.eff_from <= ? and S.valid_upto >= ? and (case when S.confirmed is null then 'N' else S.confirmed end) = 'Y' and (case when S.status is null then 'N' else S.status end) <> 'X' and SC.item_code= ? order by S.eff_from";
sql = "select SC.contract_no, SC.line_no from scontract S, scontractdet SC where S.contract_no = SC.contract_no and S.site_code = ? and S.cust_code = ? and S.eff_from <= ? and S.valid_upto >= ? and (case when S.confirmed is null then 'N' else S.confirmed end) = 'Y' and (case when S.status is null then 'N' else S.status end) not in ('X','C') and SC.item_code= ? order by S.eff_from";
sql = "select SC.contract_no, SC.line_no from scontract S, scontractdet SC where S.contract_no = SC.contract_no and S.site_code = ? and S.cust_code = ? and S.eff_from <= ? and S.valid_upto >= ? and (case when S.confirmed is null then 'N' else S.confirmed end) = 'Y' and (case when SC.status is null then 'N' else SC.status end) <> 'C' and SC.item_code= ? order by S.eff_from";
//Pavan Rane 13sep19 end
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
......
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