Commit a3874825 authored by cpatil's avatar cpatil

added condition of milestoneid for removing error


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98281 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7a7d28d7
...@@ -657,7 +657,10 @@ CreatePoVoucherAdvanceLocal, CreatePoVoucherAdvanceRemote ...@@ -657,7 +657,10 @@ CreatePoVoucherAdvanceLocal, CreatePoVoucherAdvanceRemote
sql1 = "Select porder.ord_date , porder.supp_code , porder.tot_amt,porder.ord_amt," sql1 = "Select porder.ord_date , porder.supp_code , porder.tot_amt,porder.ord_amt,"
+ "porder.curr_code,porder.exch_rate,porder.cr_term,porder.proj_code," + "porder.curr_code,porder.exch_rate,porder.cr_term,porder.proj_code,"
+ "porder.site_code__bill,porder.item_ser,(case when porder.vouch_adv_amt is null then 0 else porder.vouch_adv_amt end)vouch_adv_amt, " + "porder.site_code__bill,porder.item_ser,(case when porder.vouch_adv_amt is null then 0 else porder.vouch_adv_amt end)vouch_adv_amt, "
+ "porder.tot_amt as amount ,porder.tot_amt, porder.advance, porder.pord_type, porder.provi_tran_id From porder" + "porder.tot_amt as amount ,porder.tot_amt, porder.advance, porder.pord_type, porder.provi_tran_id, "
+ " porder.purc_order"
// + ",(case when porcp.tax is null then 0 else porcp.tax end) tax "
+ " From porder"
+ " Where purc_order = ? And confirmed ='Y'"; + " Where purc_order = ? And confirmed ='Y'";
} }
pstmt1=conn.prepareStatement(sql1); pstmt1=conn.prepareStatement(sql1);
...@@ -702,9 +705,11 @@ CreatePoVoucherAdvanceLocal, CreatePoVoucherAdvanceRemote ...@@ -702,9 +705,11 @@ CreatePoVoucherAdvanceLocal, CreatePoVoucherAdvanceRemote
//ordAmt = rs.getDouble("ord_amt"); //ordAmt = rs.getDouble("ord_amt");
//poid = rs.getString("purc_order"); //poid = rs.getString("purc_order");
if( mileStoneId == null || mileStoneId.trim().length() == 0 )
{
taxamt =rs1.getDouble("tax"); taxamt =rs1.getDouble("tax");
System.out.println("tax :"+taxamt); System.out.println("tax :"+taxamt);
}
} }
else else
......
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