Commit 239167db authored by ngadkari's avatar ngadkari

In the stock query include the rate and get in a separate variable as stkRate,...

In the stock query include the rate and get in a separate variable as stkRate,  the list_type of pricelist is "I"  then assigned  this stkRate to the rate in dist. issue instead of calling the PickRate() with stock key

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@188195 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fb3748af
...@@ -73,7 +73,7 @@ public class CreateDistIssue ...@@ -73,7 +73,7 @@ public class CreateDistIssue
double disAmount = 0d, amount = 0d, shipperQty = 0d,discount =0; double disAmount = 0d, amount = 0d, shipperQty = 0d,discount =0;
int minShelfLife = 0, noArt1 = 0, cnt = 0; int minShelfLife = 0, noArt1 = 0, cnt = 0;
int mLineNoDist =0; int mLineNoDist =0;
double qtyConfirm =0,qtyShipped =0,lcQtyOrderAlt =0,lcFact =0; double qtyConfirm =0,qtyShipped =0,lcQtyOrderAlt =0,lcFact =0,stkRate=0;
String suppSour = "", trackShelfLife = "", siteCodeMfg = "", sundryCode = "", potencyPerc = ""; String suppSour = "", trackShelfLife = "", siteCodeMfg = "", sundryCode = "", potencyPerc = "";
String priceList = "", tabValue = "", priceListClg = "", chkDate = "", disCountPer = ""; String priceList = "", tabValue = "", priceListClg = "", chkDate = "", disCountPer = "";
String tranTypePparent = null,rate ="",lsTranTypeParent =""; String tranTypePparent = null,rate ="",lsTranTypeParent ="";
...@@ -85,7 +85,7 @@ public class CreateDistIssue ...@@ -85,7 +85,7 @@ public class CreateDistIssue
String lotNo ="",lotSl ="",packCode ="",rateClg ="",taxEnv ="",taxClass =""; String lotNo ="",lotSl ="",packCode ="",rateClg ="",taxEnv ="",taxClass ="";
java.util.Date expDate = null,mfgDate = null, chkDate1 = null; java.util.Date expDate = null,mfgDate = null, chkDate1 = null;
boolean isDetFound = false; boolean isDetFound = false;
String prvDeptCode = null,deptCode ="",ratefromStock =""; String prvDeptCode = null,deptCode ="";
StringBuffer xmldetail2stock = null; StringBuffer xmldetail2stock = null;
int MAXLINESALLOWED = 0; int MAXLINESALLOWED = 0;
int countDtl=0; int countDtl=0;
...@@ -537,7 +537,7 @@ public class CreateDistIssue ...@@ -537,7 +537,7 @@ public class CreateDistIssue
lotNo = rs1.getString(1); lotNo = rs1.getString(1);
lotSl = rs1.getString(2); lotSl = rs1.getString(2);
packCode = rs1.getString(11); packCode = rs1.getString(11);
ratefromStock = rs1.getString(22); stkRate = rs1.getDouble(22);
if (remQuantity == 0) if (remQuantity == 0)
{ {
break; break;
...@@ -698,8 +698,9 @@ public class CreateDistIssue ...@@ -698,8 +698,9 @@ public class CreateDistIssue
tabValue = siteCode + "~t" + rs1.getString(12) + "~t" + rs1.getString(1) + "~t"; tabValue = siteCode + "~t" + rs1.getString(12) + "~t" + rs1.getString(1) + "~t";
System.out.println("printing tabValue----"+tabValue); System.out.println("printing tabValue----"+tabValue);
//System.out.println("tabValue :" + tabValue); //System.out.println("tabValue :" + tabValue);
rate2 = disCommon.pickRate(priceList, tranDate, itemCode, tabValue, "I",conn); /* rate2 = disCommon.pickRate(priceList, tranDate, itemCode, tabValue, "I",conn);*/ //commented by Nandkumar Gadkari on 26/07/18
//System.out.println("rate2 :" + rate2); rate2=stkRate; //added by by Nandkumar Gadkari on 26/07/18
System.out.println("rate2 stkRate :" + rate2);
} }
} }
......
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