Commit 143751f0 authored by prane's avatar prane

receipt edit (Entry_batch_no) field previous value is erased and set to “NULL” in receipt table.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@180618 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7eb007b5
......@@ -2559,6 +2559,7 @@ conn = getConnection();
String rcpAutoFinchg = "";
String custName = "";
String lcBillDescAmt = "";
String entryBtchNo = "";
double amountBc = 0.0D;
double discExchRate = 0.0D;
double mexchrate = 0.0D;
......@@ -2656,6 +2657,9 @@ conn = getConnection();
if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{
tranType = genericUtility.getColumnValue("tran_type", dom);
//Added by Pavan R on 19/Feb/2K18[Start] entry_batch_no value is set to “NULL” in receipt table on edit mode
entryBtchNo = genericUtility.getColumnValue("entry_batch_no", dom);
//Added by Pavan R on 19/Feb/2K18[End]
valueXmlString.append("<tran_type>").append("<![CDATA["+tranType.trim()+"]]>").append("</tran_type>");
BankCode = genericUtility.getColumnValue("bank_code", dom);
sql = "select case when instr_per_slip is null then 0 else instr_per_slip end from bank where bank_code = ?";
......@@ -2673,11 +2677,15 @@ conn = getConnection();
if (instrPerSlip == 0)
{
valueXmlString.append("<entry_batch_no protect = \"0\">").append("<![CDATA["+""+"]]>").append("</entry_batch_no>");
//Changed by Pavan R on 19/Feb/2K18[Start] entry_batch_no value is set to “NULL” in receipt table on edit mode
//valueXmlString.append("<entry_batch_no protect = \"0\">").append("<![CDATA["+""+"]]>").append("</entry_batch_no>");
valueXmlString.append("<entry_batch_no protect = \"0\">").append("<![CDATA["+checkNull(entryBtchNo)+"]]>").append("</entry_batch_no>");
}
else
{
valueXmlString.append("<entry_batch_no protect = \"1\">").append("<![CDATA["+""+"]]>").append("</entry_batch_no>");
//valueXmlString.append("<entry_batch_no protect = \"1\">").append("<![CDATA["+""+"]]>").append("</entry_batch_no>");
valueXmlString.append("<entry_batch_no protect = \"1\">").append("<![CDATA["+checkNull(entryBtchNo)+"]]>").append("</entry_batch_no>");
//Added by Pavan R on 19/Feb/2K18[End]
}
tranIdAdvbking = genericUtility.getColumnValue("tran_id__advbking", 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