Commit 9374cf7c authored by pdas's avatar pdas

Changes in Calculate Commision for checking expAmt!=0 condition


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97794 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 16d63b4e
...@@ -2990,6 +2990,8 @@ public class CalculateCommission ...@@ -2990,6 +2990,8 @@ public class CalculateCommission
} }
if (xmlBuff != null ) if (xmlBuff != null )
{ {
if(expAmt!=0) //Added By Priyanka Das
{
lineNo++; lineNo++;
xmlBuff.append("<Detail2 dbID='' domID=\"" + lineNo + "\" objName=\"drcrinv\" objContext=\"2\">"); xmlBuff.append("<Detail2 dbID='' domID=\"" + lineNo + "\" objName=\"drcrinv\" objContext=\"2\">");
xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />"); xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />");
...@@ -3012,6 +3014,7 @@ public class CalculateCommission ...@@ -3012,6 +3014,7 @@ public class CalculateCommission
xmlBuff.append("<drcr_amt><![CDATA["+ ((expAmt * -1) * (exchRate/crntExchrate)) +"]]></drcr_amt>"); xmlBuff.append("<drcr_amt><![CDATA["+ ((expAmt * -1) * (exchRate/crntExchrate)) +"]]></drcr_amt>");
xmlBuff.append("</Detail2>"); xmlBuff.append("</Detail2>");
} }
}
} }
} }
System.out.println("End loop Size of crnList ["+crnList.size() + "]"); System.out.println("End loop Size of crnList ["+crnList.size() + "]");
......
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