Commit d06e3a45 authored by smestry's avatar smestry

Updated the class file for PO Autosave for pricelist


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103108 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8ff78931
......@@ -1529,8 +1529,13 @@ public class DDPorderWizEJB extends ValidatorEJB implements DDPorderWizEJBRemote
if(purcOrder.equalsIgnoreCase("")) // Add
{
sql = " select rate from pricelist where item_code = ? "
+"and price_list in (select price_list from supplier where supp_code = ? )";
// Changed by Sneha on 24-08-2016, for pricelist [Start]
/*sql = " select rate from pricelist where item_code = ? "
+"and price_list in (select price_list from supplier where supp_dcode = ? ) ";*/
sql = "select rate from pricelist where item_code = ? and sysdate between eff_from and valid_upto and "
+ " price_list in (select price_list from supplier where supp_code = ? ) order by pricelist.eff_from desc ";
// Changed by Sneha on 24-08-2016, for pricelist [End]
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, suppCode);
......
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