Commit 33a58e6a authored by ssalve's avatar ssalve

Sarita : done changes to set lntrantype to FRT on 06APR2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@183237 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0bd6e75c
......@@ -2473,7 +2473,8 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
lscctrcode = genericUtility.getColumnValue("cctr_code",headerDom);
lscurrcode = genericUtility.getColumnValue("curr_code",headerDom);
lssitefr = genericUtility.getColumnValue("site_code__fr",headerDom);
lssiteto = genericUtility.getColumnValue("site__code_to",headerDom);
//lssiteto = genericUtility.getColumnValue("site__code_to",headerDom);//changes by sarita on 06APR2018
lssiteto = genericUtility.getColumnValue("site_code__to",headerDom);
lstaxclass = checkNull(genericUtility.getColumnValue("tax_class",headerDom));
System.out.println("Tax Class@@@@@@@"+ lstaxclass);
lstaxchap = checkNull(genericUtility.getColumnValue("tax_chap",headerDom));
......@@ -2488,7 +2489,7 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
//select count(*) from site a, site b where a.FIN_ENTITY = b.FIN_ENTITY and a.site_code = ? and b.site_code = ?
sql="select count(*)from site a, site b where a.FIN_ENTITY = b.FIN_ENTITY and a.site_code = ? and b.site_code = ?";
sql="select count(*) from site a, site b where a.FIN_ENTITY = b.FIN_ENTITY and a.site_code = ? and b.site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lssitefr);
pstmt.setString(2,lssiteto);
......@@ -3388,16 +3389,26 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
xmlBuff.append("<tran_id><![CDATA[]]></tran_id>");
//xmlBuff.append("<tran_date><![CDATA[" + sdf.format(new java.util.Date()).toString() + "]]></tran_date>");
xmlBuff.append("<tran_date><![CDATA[" + dateStr + "]]></tran_date>");
//Commented & changes by sarita on 06APR2018 for Distribution Expense Voucher[start]
if(lstrantype==null)
{
lstrantype=" ";
xmlBuff.append("<tran_type><![CDATA[" + lstrantype.trim() + "]]></tran_type>");
xmlBuff.append("<tran_type><![CDATA[FRT]]></tran_type>");
}
else
{
xmlBuff.append("<tran_type><![CDATA[" + lstrantype.trim() + "]]></tran_type>");
}
/*if(lstrantype==null)
{
lstrantype=" ";
xmlBuff.append("<tran_type><![CDATA[" + lstrantype.trim() + "]]></tran_type>");
}
else
{
xmlBuff.append("<tran_type><![CDATA[" + lstrantype.trim() + "]]></tran_type>");
}*/
//Commented & changes by sarita on 06APR2018 Distribution Expense Voucher [end]
//xmlBuff.append("<eff_date><![CDATA[" + sdf.format(new java.util.Date()).toString() + "]]></eff_date>");
xmlBuff.append("<eff_date><![CDATA[" + dateStr + "]]></eff_date>");
xmlBuff.append("<sundry_type><![CDATA[" + lssundrytype + "]]></sundry_type>");
......
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