Commit 541389b5 authored by pshinde's avatar pshinde

For adjusting -VE payable, scheduler should check Site_Code and Curr_code...

For adjusting -VE payable, scheduler should check Site_Code and Curr_code along with tot_amt-adj_amt


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98454 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a470f58a
......@@ -1410,7 +1410,8 @@ System.out.println("Getting winName============"+windowName);
}
System.out.println("Currency_code==================="+currCode);
System.out.println("Site_code==================="+siteCode);
//addd on 10/07/15***FIRST NEGATIVE MAP CREATED HERE ENDED HERE AND ENDED HERE
if(!sundryCodeList.contains(sundryCode))
......@@ -1428,11 +1429,16 @@ System.out.println("Getting winName============"+windowName);
"misc_payables.tot_amt - (case when misc_payables.adj_amt is null then 0 else misc_payables.adj_amt end) - (case when misc_payables.hold_amt is null then 0 else misc_payables.hold_amt end) as pay_amt," +
"fn_sundry_name(misc_payables.sundry_type,misc_payables.sundry_code,'') as sundry_name," +
"misc_payables.tot_amt - (case when misc_payables.adj_amt is null then 0 else misc_payables.adj_amt end) - (case when misc_payables.hold_amt is null then 0 else misc_payables.hold_amt end) as net_payable " +
" FROM misc_payables WHERE sundry_code= ? and tot_amt - adj_amt < 0 order by due_date";
" FROM misc_payables WHERE sundry_code= ? and " +
" curr_code= ? " +
"and site_code= ? " +
"and tot_amt - adj_amt < 0 order by due_date";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,sundryCode);
pstmt.setString(2,currCode);
pstmt.setString(3,siteCode);
rs = pstmt.executeQuery();
while (rs.next())
{
......
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