Commit 3df1841e authored by kmandhre's avatar kmandhre

set Excise Clearing rate


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92958 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2690c54c
......@@ -508,18 +508,18 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
private StringBuffer itmCodeItmChanges(Document dom, Document dom1,String ditemCode, String contractNo,String siteCode,double quantity,String unitStd,double rate,String boqAcctCode,String boqCctrCode, Connection conn) throws ITMException
{
System.out.println("itmCodeItmChanges called....");
String empLname = "";
String empLname = " ";
//String taxClass = "";
//String taxChap = "";
String sql = "";
String locCodeAprv = "";
String locCodeInsp = "";
String qcreqd = "";
String empCodeQcaprv = "";
String empCodeQcaprv = " ";
//String descr = "";
String locCode = "";
String empFname = "";
String empMname = "";
String empFname = " ";
String empMname = " ";
//String taxEnv = "";
//String discountType = "";
//String bomCode = "";
......@@ -531,7 +531,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
String pordType = "";
//String cctrCode = "";
//String acctCode = "";
String itemCodeRef = "";
String itemCodeRef = " ";
//String indentNo = "";
//String suppCodeMnfr = " ";
//String qcReqd = "" ;
......@@ -566,6 +566,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
try
{
//conn = connDriver.getConnectDB("DriverITM");
sql = "Select loc_code, emp_code__qcaprv ,item_ser from item where item_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,ditemCode);
......@@ -999,8 +1000,6 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
XmlString.append("<acct_code__cr>").append("<![CDATA[").append(acctCr).append("]]>").append("</acct_code__cr>\r\n");
XmlString.append("<cctr_code__cr>").append("<![CDATA[").append(cctrCr).append("]]>").append("</cctr_code__cr>\r\n");
System.out.println("XmlString"+XmlString);
//cctr_code__dr and cctr_code__cr is allways Blank
/*costctr =genericUtility.getColumnValue("cctr_code__dr", dom1);
......@@ -1110,6 +1109,11 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
}
else
{
System.out.println("rateClg="+rateClg);
if(rateClg == 0 || rateClg == -1)
{
rateClg = rate;
}
XmlString.append("<rate__clg>").append("<![CDATA[").append(rateClg).append("]]>").append("</rate__clg>\r\n");
}
......@@ -1150,7 +1154,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
XmlString.append("<std_cost>").append("<![CDATA[").append(stdCode).append("]]>").append("</std_cost>\r\n");
XmlString.append("<varience>").append("<![CDATA[").append(stdCode - actualCost).append("]]>").append("</varience>\r\n");
System.out.println("XmlString"+XmlString);
}
catch (Exception e)
{
......@@ -1254,7 +1258,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
valueXmlString.append("<Detail>");
currDetail1 = detailList.item(ctr);
valueXmlString.append("<item_ser>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("item_ser", currDetail1)).append("]]>").append("</item_ser>\r\n");
valueXmlString.append("<item_code>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("item_code", currDetail1)).append("]]>").append("</item_code>\r\n");
valueXmlString.append("<item_code isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("item_code", currDetail1)).append("]]>").append("</item_code>\r\n");
valueXmlString.append("<quantity>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("quantity", currDetail1)).append("]]>").append("</quantity>\r\n");
valueXmlString.append("<unit>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit", currDetail1)).append("]]>").append("</unit>\r\n");
valueXmlString.append("<rate>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("rate", currDetail1)).append("]]>").append("</rate>\r\n");
......
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