Commit a67049e0 authored by smanohar's avatar smanohar

Bug in multiple pdc received fixed as the xml was appending to the previous...

Bug in multiple pdc received fixed as the xml was appending to the previous transaction without initialisation

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187506 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9d0aa064
...@@ -401,7 +401,7 @@ public class PdcToReceiptPrc extends ProcessEJB implements PdcToReceiptPrcLocal, ...@@ -401,7 +401,7 @@ public class PdcToReceiptPrc extends ProcessEJB implements PdcToReceiptPrcLocal,
conn = getConnection(); conn = getConnection();
StringBuffer xmlBuff = new StringBuffer(); StringBuffer xmlBuff = null;
sdf=new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf=new SimpleDateFormat(genericUtility.getApplDateFormat());
sTranDate = checkNull(genericUtility.getColumnValue("tran_date", headerDom)); sTranDate = checkNull(genericUtility.getColumnValue("tran_date", headerDom));
if(sTranDate != null && sTranDate.trim().length() > 0) if(sTranDate != null && sTranDate.trim().length() > 0)
...@@ -564,6 +564,7 @@ public class PdcToReceiptPrc extends ProcessEJB implements PdcToReceiptPrcLocal, ...@@ -564,6 +564,7 @@ public class PdcToReceiptPrc extends ProcessEJB implements PdcToReceiptPrcLocal,
} }
//INSERT INTO RECEIPT //INSERT INTO RECEIPT
xmlBuff = new StringBuffer();
xmlBuff.append("<?xml version='1.0' encoding='ISO-8859-1'?><DocumentRoot>"); xmlBuff.append("<?xml version='1.0' encoding='ISO-8859-1'?><DocumentRoot>");
xmlBuff.append("<description>Datawindow Root</description>"); xmlBuff.append("<description>Datawindow Root</description>");
xmlBuff.append("<group0>"); xmlBuff.append("<group0>");
...@@ -807,6 +808,7 @@ public class PdcToReceiptPrc extends ProcessEJB implements PdcToReceiptPrcLocal, ...@@ -807,6 +808,7 @@ public class PdcToReceiptPrc extends ProcessEJB implements PdcToReceiptPrcLocal,
} }
//INSERT INTO misc_rcp //INSERT INTO misc_rcp
xmlBuff = new StringBuffer();
xmlBuff.append("<?xml version='1.0' encoding='ISO-8859-1'?><DocumentRoot>"); xmlBuff.append("<?xml version='1.0' encoding='ISO-8859-1'?><DocumentRoot>");
xmlBuff.append("<description>Datawindow Root</description>"); xmlBuff.append("<description>Datawindow Root</description>");
xmlBuff.append("<group0>"); xmlBuff.append("<group0>");
......
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