Commit 658b47cb authored by msharma's avatar msharma

To be adjusted and adjusted Column added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92205 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f07efda3
......@@ -133,7 +133,9 @@ public class GenerateReceiptIC extends ValidatorEJB implements GenerateReceiptIC
{
tranType = checkNull(genericUtility.getColumnValue("tran_type", dom));
custCodeFrom = checkNull(genericUtility.getColumnValue("cust_code__from", dom));
custCodeTo = checkNull(genericUtility.getColumnValue("cust_code__to", dom));
//Manoj dtd 27/11/2012 to set Default from value to CustCode to
//custCodeTo = checkNull(genericUtility.getColumnValue("cust_code__to", dom));
custCodeTo=custCodeFrom;
chequeNo = checkNull(genericUtility.getColumnValue("cheque_no", dom));
chequeDate = checkNull(genericUtility.getColumnValue("cheque_date", dom));
chequeAmt = checkNull(genericUtility.getColumnValue("cheque_amount", dom));
......@@ -153,6 +155,7 @@ public class GenerateReceiptIC extends ValidatorEJB implements GenerateReceiptIC
valueXmlString.append("<cheque_date protect='0'>").append("<![CDATA["+chequeDate+"]]>").append("</cheque_date>");
valueXmlString.append("<cheque_amount protect='0'>").append("<![CDATA["+chequeAmt+"]]>").append("</cheque_amount>");
valueXmlString.append("<cust_bank_ref protect='0'>").append("<![CDATA["+custBlank+"]]>").append("</cust_bank_ref>");
valueXmlString.append("<cust_code__to protect='0'>").append("<![CDATA["+custCodeTo+"]]>").append("</cust_code__to>");
}
//valueXmlString.append("<cust_code__from>").append("<![CDATA["+custCode+"]]>").append("</cust_code__from>");
//valueXmlString.append("<cust_code__to>").append("<![CDATA["+custCode+"]]>").append("</cust_code__to>");
......
......@@ -400,7 +400,7 @@ Put a validation chq amount in filter and total of details matches in case heade
//Added by manoj dtd 18/10/2012 to display absolute value
retTabSepStrBuff.append(Math.abs(rs.getDouble(4))).append("\t");
// adj_amt
retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append(rs.getDouble(4)).append("\t");
//CHEQUE_NO
// 20/07/12 manoharan if cheque number is not specified in sales order set from augument
System.out.println("ch no 1 = "+rs.getString(8));
......@@ -440,7 +440,9 @@ Put a validation chq amount in filter and total of details matches in case heade
retTabSepStrBuff.append((rs.getString(10)==null?" ":rs.getString(10).trim())).append("\t"); // added by rajesh k to get cust_code
// cust_ref_amt
retTabSepStrBuff.append("0").append("\t");
retTabSepStrBuff.append(remarks).append("\n");
retTabSepStrBuff.append(remarks).append("\t");
// adjusted_amt
retTabSepStrBuff.append(0).append("\n");
System.out.println("INVOICE_ID :::::::: "+rs.getString(1));
System.out.println("TRAN_DATE :::::::: "+rs.getDate(3));
writeLog(filePtr,"@@@@@@@@@@@@@@ INVOICE_ID :::."+rs.getString(1),true);
......@@ -502,7 +504,7 @@ Put a validation chq amount in filter and total of details matches in case heade
//Added by manoj dtd 18/10/2012 to display absolute value
retTabSepStrBuff.append(Math.abs(rs.getDouble(4))).append("\t");
//adj_AMT
retTabSepStrBuff.append(rs.getDouble("ADJ_AMT")).append("\t");
retTabSepStrBuff.append(rs.getDouble(4)).append("\t");
//CHEQUE_NO
if(rs.getString(8)==null || rs.getString(8).trim().length() == 0) //change done by Kunal on 19/10/12
{
......@@ -571,7 +573,9 @@ Put a validation chq amount in filter and total of details matches in case heade
retTabSepStrBuff.append(rs.getString(10)).append("\t");//added by rajesh k to append cust_code
//cust_ref_amt
retTabSepStrBuff.append(rs.getDouble("CUST_REF_AMT")).append("\t");
retTabSepStrBuff.append(remarks).append("\n");
retTabSepStrBuff.append(remarks).append("\t");
// adjusted_amt
retTabSepStrBuff.append(rs.getDouble("ADJ_AMT")).append("\n");
System.out.println("INVOICE_ID :::::::: "+rs.getString(1));
writeLog(filePtr,"%%%%%%%%% INVOICE_ID :::."+rs.getString(1),true);
writeLog(filePtr,"%%%%%%%%% CHEQUE_DATE :::."+rs.getString(7),true);
......
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