Commit 1dc94afe authored by mmhatre's avatar mmhatre

added itemchanged for debit amount and credit amount

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213516 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2538ad59
......@@ -853,6 +853,8 @@ conn = getConnection();
// GenericUtility genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver();
String itemCode="",itemDescr=""; // added by cpatil 01/07/13
String drcrFlag="",amountStr=""; //added by manish mhatre on 29-nov-2019
double amount=0.0d; //added by manish mhatre on 29-nov-2019
try
{
//Changes and Commented By Bhushan on 06-06-2016 :START
......@@ -1174,6 +1176,41 @@ conn = getConnection();
}
/// end
//added by manish mhatre on 29-nov-2019
//start manish
else if(currentColumn.trim().equalsIgnoreCase("amount"))
{
tranId=genericUtility.getColumnValue("tran_id", dom);
drcrFlag=genericUtility.getColumnValue("drcr_flag", dom);
amountStr= genericUtility.getColumnValue("amount", dom);
if(amountStr != null && amountStr.trim().length()>0)
{
amount=Double.parseDouble(amountStr);
}
else
{
amount=0.0;
}
if(drcrFlag.equalsIgnoreCase("D"))
{
valueXmlString.append("<dr_amt>").append("<![CDATA[" + amount + "]]>").append("</dr_amt>");
}
else
{
valueXmlString.append("<dr_amt>").append("<![CDATA[0]]>").append("</dr_amt>");
}
if(drcrFlag.equalsIgnoreCase("C"))
{
valueXmlString.append("<cr_amt>").append("<![CDATA[" + amount + "]]>").append("</cr_amt>");
}
else
{
valueXmlString.append("<cr_amt>").append("<![CDATA[0]]>").append("</cr_amt>");
}
}
//end manish
valueXmlString.append("</Detail>");
......
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