Commit db48077f authored by rtiwari's avatar rtiwari

ReceiptAdv


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93071 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fe739dbd
...@@ -113,6 +113,8 @@ implements ReceiptAdvLocal, ReceiptAdvRemote ...@@ -113,6 +113,8 @@ implements ReceiptAdvLocal, ReceiptAdvRemote
double balAmt = 0.0D; double balAmt = 0.0D;
double amountBc = 0.0D; double amountBc = 0.0D;
double rcpAmt = 0.0D; double rcpAmt = 0.0D;
double rcpAmt1 = 0.0D;
double billDiscAmt = 0.0D;
double advAmt = 0.0D; double advAmt = 0.0D;
double Amt = 0.0D; double Amt = 0.0D;
double totAmt = 0.0D; double totAmt = 0.0D;
...@@ -884,6 +886,20 @@ implements ReceiptAdvLocal, ReceiptAdvRemote ...@@ -884,6 +886,20 @@ implements ReceiptAdvLocal, ReceiptAdvRemote
pstmt = null; pstmt = null;
} }
} }
else if(childNodeName.equalsIgnoreCase("bill_disc_amt")) //added by ritesh as per discusion with pravin on 14/05/13 start
{
billDiscAmt = Double.parseDouble(this.genericUtility.getColumnValue("bill_disc_amt", dom));
if (billDiscAmt > 0)
{
rcpAmt1 = doublevalue(this.genericUtility.getColumnValue("rcp_amt", dom));
if(billDiscAmt < rcpAmt1)
{
errCode = "VTBDAMT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
} //added by ritesh as per discusion with pravin on 14/05/13 end
else if(childNodeName.equalsIgnoreCase("rcp_amt")) else if(childNodeName.equalsIgnoreCase("rcp_amt"))
{ {
rcpAmt = doublevalue(this.genericUtility.getColumnValue("rcp_amt", dom)); rcpAmt = doublevalue(this.genericUtility.getColumnValue("rcp_amt", dom));
...@@ -2613,7 +2629,7 @@ implements ReceiptAdvLocal, ReceiptAdvRemote ...@@ -2613,7 +2629,7 @@ implements ReceiptAdvLocal, ReceiptAdvRemote
billDisc = "N"; billDisc = "N";
if (billDisc.trim().equalsIgnoreCase("Y")) if (billDisc.trim().equalsIgnoreCase("Y"))
{ //added by ritesh start { //added by ritesh start
sql = "select export_fund.exch_rate,lc_billdisc_amt from export_fund, export_fundet where ( export_fund.tran_id = export_fundet.tran_id ) and ( export_fund.confirmed = 'Y' ) and ( ( export_fundet.ref_ser = ? ) and ( export_fundet.ref_no = ? ) )"; sql = "select export_fund.exch_rate,export_fundet.bill_disc_amt from export_fund, export_fundet where ( export_fund.tran_id = export_fundet.tran_id ) and ( export_fund.confirmed = 'Y' ) and ( ( export_fundet.ref_ser = ? ) and ( export_fundet.ref_no = ? ) )";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refSer); pstmt.setString(1, refSer);
......
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