Commit 260c7b42 authored by agaikwad's avatar agaikwad

Request_id-D15ISUN003

Changes in Exceeded Amount and Current Po Amd Amount


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100105 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 53b3e9b0
...@@ -471,7 +471,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd ...@@ -471,7 +471,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
double totAmtpoamdtemp =0,approxCost = 0,totAmtDetpordertot = 0,totAmtPoamd =0,totAmtDetpordertotNtc = 0.0 ,totAmtDetpordertotPorcpConf=0.0, totAmtDetpordertotPorcpSer=0.0;;; double totAmtpoamdtemp =0,approxCost = 0,totAmtDetpordertot = 0,totAmtPoamd =0,totAmtDetpordertotNtc = 0.0 ,totAmtDetpordertotPorcpConf=0.0, totAmtDetpordertotPorcpSer=0.0;;;
String pordType =""; String pordType ="";
String varValue =""; String varValue ="";
boolean ValueType = false; boolean ValueType = false, firstNull=true;
DistCommon discommon = new DistCommon(); DistCommon discommon = new DistCommon();
double sumQtyamd=0,excedAmt=0; double sumQtyamd=0,excedAmt=0;
...@@ -806,8 +806,9 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd ...@@ -806,8 +806,9 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
} }
System.out.println("@@@@@@@@@@ after excedAmt["+excedAmt+"]");*/ System.out.println("@@@@@@@@@@ after excedAmt["+excedAmt+"]");*/
if(lineNoold == null || "@".equalsIgnoreCase(lineNoold) || "".equalsIgnoreCase(lineNoold) || lineNoold.trim().length()==0) if((lineNoold == null || "@".equalsIgnoreCase(lineNoold) || "".equalsIgnoreCase(lineNoold) || lineNoold.trim().length()==0 ) && firstNull== true)
{ {
firstNull=false;
System.out.println("@@@@@@@@@@ excedAmt["+excedAmt+"]sumQtyamd["+sumQtyamd+"]+totAmtDetpordertot["+totAmtDetpordertot+"]-approxCost["+approxCost+"]"); System.out.println("@@@@@@@@@@ excedAmt["+excedAmt+"]sumQtyamd["+sumQtyamd+"]+totAmtDetpordertot["+totAmtDetpordertot+"]-approxCost["+approxCost+"]");
excedAmt += totAmtpoamdtempold + totAmtDetpordertot - approxCost; excedAmt += totAmtpoamdtempold + totAmtDetpordertot - approxCost;
} }
......
...@@ -144,7 +144,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder ...@@ -144,7 +144,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
String line1 =""; String line1 ="";
String startStr ="",endStr = "",descrStr = "",descrStart ="", descrEnd ="" ,exchRateStr ="",value =""; String startStr ="",endStr = "",descrStr = "",descrStart ="", descrEnd ="" ,exchRateStr ="",value ="";
double discountpoamddet =0,taxpoamddet =0,totAmtpoamd = 0; double discountpoamddet =0,taxpoamddet =0,totAmtpoamd = 0;
boolean ValueType = false,ValueProjectType = false; boolean ValueType = false,ValueProjectType = false,firstNull=true;
int cntindamdhdr = 0,itrArr =0,maxLine =0; int cntindamdhdr = 0,itrArr =0,maxLine =0;
int pos; int pos;
String totAmtDetpordertempstr ="",quantitypoamd ="",ratepoamd ="",acctCodeCrporder =""; String totAmtDetpordertempstr ="",quantitypoamd ="",ratepoamd ="",acctCodeCrporder ="";
...@@ -1583,10 +1583,12 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder ...@@ -1583,10 +1583,12 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
System.out.println("linenoOrdBrow>>>["+linenoOrdBrow+"]a["+a+"]" ); System.out.println("linenoOrdBrow>>>["+linenoOrdBrow+"]a["+a+"]" );
if(linenoOrdBrow == null || "@".equalsIgnoreCase(linenoOrdBrow) || "".equalsIgnoreCase(linenoOrdBrow) || linenoOrdBrow.trim().length()==0) if((linenoOrdBrow == null || "@".equalsIgnoreCase(linenoOrdBrow) || "".equalsIgnoreCase(linenoOrdBrow) || linenoOrdBrow.trim().length()==0 ) && firstNull== true)
{ {
firstNull=false;
System.out.println("@@@@@@@@@@ excedAmt["+excedAmt+"]sumQtyamd["+sumQtyamd+"]+totAmtDetpordertot["+totAmtDetpordertot+"]-approxCost["+approxCost+"]"); System.out.println("@@@@@@@@@@ excedAmt["+excedAmt+"]sumQtyamd["+sumQtyamd+"]+totAmtDetpordertot["+totAmtDetpordertot+"]-approxCost["+approxCost+"]");
excedAmt += sumQtyamd + totAmtDetpordertot - approxCost; excedAmt += sumQtyamd + totAmtDetpordertot - approxCost;
} }
else else
{ {
......
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