Commit 1dcc4364 authored by mpatidar's avatar mpatidar

After validate the min and max quantity for get the rate


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91755 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4fa8a357
...@@ -2265,7 +2265,8 @@ public class DistCommon ...@@ -2265,7 +2265,8 @@ public class DistCommon
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND UNIT = '"+aunit+"' " + "AND UNIT = '"+aunit+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'L' " + "AND LIST_TYPE = 'L' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -2296,7 +2297,8 @@ public class DistCommon ...@@ -2296,7 +2297,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'L' " + "AND LIST_TYPE = 'L' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -2469,7 +2471,8 @@ public class DistCommon ...@@ -2469,7 +2471,8 @@ public class DistCommon
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND UNIT = '"+aunit+"' " + "AND UNIT = '"+aunit+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'F' " + "AND LIST_TYPE = 'F' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -2500,7 +2503,8 @@ public class DistCommon ...@@ -2500,7 +2503,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'F' " + "AND LIST_TYPE = 'F' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -2671,7 +2675,8 @@ public class DistCommon ...@@ -2671,7 +2675,8 @@ public class DistCommon
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND UNIT = '"+aunit+"' " + "AND UNIT = '"+aunit+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'L' " + "AND LIST_TYPE = 'L' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -2702,7 +2707,8 @@ public class DistCommon ...@@ -2702,7 +2707,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'L' " + "AND LIST_TYPE = 'L' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -2756,7 +2762,8 @@ public class DistCommon ...@@ -2756,7 +2762,8 @@ public class DistCommon
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND UNIT = '"+aunit+"' " + "AND UNIT = '"+aunit+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'B' " + "AND LIST_TYPE = 'B' "
+ "AND LOT_NO__FROM <= '"+lotNo+"' " + "AND LOT_NO__FROM <= '"+lotNo+"' "
+ "AND LOT_NO__TO >= '"+lotNo+"' " + "AND LOT_NO__TO >= '"+lotNo+"' "
...@@ -2789,7 +2796,8 @@ public class DistCommon ...@@ -2789,7 +2796,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceList+"' " + "WHERE PRICE_LIST = '"+priceList+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'B' " + "AND LIST_TYPE = 'B' "
+ "AND LOT_NO__FROM <= '"+lotNo+"' " + "AND LOT_NO__FROM <= '"+lotNo+"' "
+ "AND LOT_NO__TO >= '"+lotNo+"' " + "AND LOT_NO__TO >= '"+lotNo+"' "
...@@ -2847,7 +2855,8 @@ public class DistCommon ...@@ -2847,7 +2855,8 @@ public class DistCommon
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND UNIT = '"+aunit+"' " + "AND UNIT = '"+aunit+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'B' " + "AND LIST_TYPE = 'B' "
+ "AND LOT_NO__FROM <= '"+lotNo+"' " + "AND LOT_NO__FROM <= '"+lotNo+"' "
+ "AND LOT_NO__TO >= '"+lotNo+"' " + "AND LOT_NO__TO >= '"+lotNo+"' "
...@@ -2880,7 +2889,8 @@ public class DistCommon ...@@ -2880,7 +2889,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'B' " + "AND LIST_TYPE = 'B' "
+ "AND LOT_NO__FROM <= '"+lotNo+"' " + "AND LOT_NO__FROM <= '"+lotNo+"' "
+ "AND LOT_NO__TO >= '"+lotNo+"' " + "AND LOT_NO__TO >= '"+lotNo+"' "
...@@ -3314,7 +3324,8 @@ public class DistCommon ...@@ -3314,7 +3324,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'L' " + "AND LIST_TYPE = 'L' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -3430,7 +3441,8 @@ public class DistCommon ...@@ -3430,7 +3441,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'F' " + "AND LIST_TYPE = 'F' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -3545,7 +3557,8 @@ public class DistCommon ...@@ -3545,7 +3557,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'L' " + "AND LIST_TYPE = 'L' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -4130,7 +4143,8 @@ public class DistCommon ...@@ -4130,7 +4143,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'L' " + "AND LIST_TYPE = 'L' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -4245,7 +4259,8 @@ public class DistCommon ...@@ -4245,7 +4259,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'F' " + "AND LIST_TYPE = 'F' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
...@@ -4359,7 +4374,8 @@ public class DistCommon ...@@ -4359,7 +4374,8 @@ public class DistCommon
+ "WHERE PRICE_LIST = '"+priceListParent+"' " + "WHERE PRICE_LIST = '"+priceListParent+"' "
+ "AND ITEM_CODE = '"+itemCode+"' " + "AND ITEM_CODE = '"+itemCode+"' "
+ "AND MIN_QTY <= "+quantity+" " + "AND MIN_QTY <= "+quantity+" "
+ "AND MIN_QTY >= "+quantity+" " // + "AND MIN_QTY >= "+quantity+" " //Commented By Mahesh Patidar on 05/07/12 as per instruction S. Manoharan
+ "AND MAX_QTY >= "+quantity+" " //Added By Mahesh patidar on 05/07/12 as per instruction S. Manoharan
+ "AND LIST_TYPE = 'L' " + "AND LIST_TYPE = 'L' "
+ "AND EFF_FROM <= ? " + "AND EFF_FROM <= ? "
+ "AND VALID_UPTO >= ?"; + "AND VALID_UPTO >= ?";
......
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