Commit 04d66ff3 authored by kmandhre's avatar kmandhre

add order receivable button for dosti client FI3JDOS002


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94165 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c601889b
......@@ -56,7 +56,7 @@ public class ReceiptAdvAct extends ActionHandlerEJB implements ReceiptAdvActLoca
try
{
if ("actionDefaultSer".equalsIgnoreCase(actionType) || "Default".equalsIgnoreCase(actionType) )
if ("actionDefaultSer".equalsIgnoreCase(actionType) || "Default".equalsIgnoreCase(actionType) || "ord_receivable".equalsIgnoreCase(actionType) )
{
if(xmlString != null && xmlString.trim().length()!=0)
{
......@@ -186,6 +186,7 @@ public class ReceiptAdvAct extends ActionHandlerEJB implements ReceiptAdvActLoca
String siteCodeInv="";
String errCode = "" ,errString = "";
String itemSer=null;
String sorder = "";
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
......@@ -210,6 +211,9 @@ public class ReceiptAdvAct extends ActionHandlerEJB implements ReceiptAdvActLoca
currCode = genericUtility.getColumnValue("curr_code",dom);
advAmt = genericUtility.getColumnValue("adv_amt",dom);
System.out.println("siteCodeInv:"+siteCodeInv);
sorder = genericUtility.getColumnValue("sale_order",dom);
System.out.println("sorder::"+sorder);
//added new if condition by swati on 3rd june 2013 to check for outstanding of customer of invoicing site,RID:FI2JALL001
if((siteCodeInv != null) && (siteCodeInv.trim().length()>0))
......@@ -245,11 +249,17 @@ public class ReceiptAdvAct extends ActionHandlerEJB implements ReceiptAdvActLoca
}
else if(actionType.equals("ord_receivable"))//added by kunal on 27/jan/14 for dosti client FI3JDOS002
{
sql = "SELECT TRAN_SER, REF_NO, TOT_AMT, ADJ_AMT FROM RECEIVABLES "+
" WHERE SITE_CODE = '"+siteCode+"' AND CUST_CODE = '"+custCode+"' AND CURR_CODE = '"+currCode+"' AND SALE_ORDER = '"+ sorder+"' AND TOT_AMT - ADJ_AMT > 0 ORDER BY DUE_DATE";
}
}
else if (objContext.equalsIgnoreCase("3"))
{
sql = " SELECT TRAN_SER, REF_NO, TOT_AMT, ADJ_AMT FROM RECEIVABLES WHERE SITE_CODE = '"+siteCode+"' AND CUST_CODE = '"+custCode+"' AND CURR_CODE = '"+ currCode+"' AND TOT_AMT - ADJ_AMT < 0 ORDER BY DUE_DATE";
}
System.out.println("sql::"+sql);
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
......
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