Commit eab235ef authored by agaikwad's avatar agaikwad

Added itm_defaultedit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106679 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ec028058
......@@ -761,6 +761,47 @@ public class RcpAdvTaxcalcIC extends ValidatorEJB
System.out.println("taxEnvigst"+taxEnvigst);
valueXmlString.append("<tax_env_igst protect = \"0\"><![CDATA[" + taxEnvigst+ "]]></tax_env_igst>");
}
if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{
String taxClassEdit="",taxChapEdit="",taxEnvEdit="",custCodeEdit="";
String refTypeEdit="",refSerEdit="",refIdEdit="",refIdAdvEdit="",dateADvEdit="",amount="",refDateEdit="";
taxClassEdit = checkNull(this.genericUtility.getColumnValue("tax_class",dom));
taxChapEdit = checkNull(this.genericUtility.getColumnValue("tax_chap",dom));
taxEnvEdit = checkNull(this.genericUtility.getColumnValue("tax_env",dom));
custCodeEdit = checkNull(this.genericUtility.getColumnValue("cust_code",dom));
refTypeEdit = checkNull(this.genericUtility.getColumnValue("ref_type",dom));
refSerEdit = checkNull(this.genericUtility.getColumnValue("ref_ser",dom));
refIdEdit = checkNull(this.genericUtility.getColumnValue("ref_id",dom));
refIdAdvEdit = checkNull(this.genericUtility.getColumnValue("ref_id__adv",dom));
amount = checkNull(this.genericUtility.getColumnValue("amount",dom));
refDateEdit = checkNull(this.genericUtility.getColumnValue("ref_date",dom));
valueXmlString.append("<cust_code protect = \"1\"><![CDATA[" + custCodeEdit+ "]]></cust_code>");
valueXmlString.append("<ref_type protect = \"1\"><![CDATA[" + refTypeEdit+ "]]></ref_type>");
valueXmlString.append("<ref_ser protect = \"1\"><![CDATA[" + refSerEdit+ "]]></ref_ser>");
if(refIdEdit !=null && refIdEdit.trim().length() > 0)
{
valueXmlString.append("<ref_id protect = \"1\"><![CDATA[" + refIdEdit+ "]]></ref_id>");
}
if(refIdAdvEdit !=null && refIdAdvEdit.trim().length() > 0)
{
valueXmlString.append("<ref_id__adv protect = \"1\"><![CDATA[" + refIdAdvEdit+ "]]></ref_id__adv>");
}
if(amount !=null && amount.trim().length() > 0)
{
valueXmlString.append("<amount protect = \"1\"><![CDATA[" + amount+ "]]></amount>");
}
if(refDateEdit !=null && refDateEdit.trim().length() > 0)
{
valueXmlString.append("<ref_date protect = \"1\"><![CDATA[" + refDateEdit+ "]]></ref_date>");
}
System.out.println("tax_class"+taxClassEdit);
valueXmlString.append("<tax_class protect = \"1\"><![CDATA[" + taxClassEdit+ "]]></tax_class>");
System.out.println("taxChap"+taxChap);
valueXmlString.append("<tax_chap protect = \"1\"><![CDATA[" + taxChapEdit+ "]]></tax_chap>");
System.out.println("taxEnv"+taxEnv);
valueXmlString.append("<tax_env protect = \"1\"><![CDATA[" + taxEnvEdit+ "]]></tax_env>");//DATE_ADV
valueXmlString.append("<date_adv protect = \"1\"><![CDATA[]]></date_adv>");
}
if (currentColumn.trim().equalsIgnoreCase("cust_code"))
{
custCode = checkNull(this.genericUtility.getColumnValue("cust_code",dom));
......
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