Commit e7fa97e2 authored by dpawar's avatar dpawar

declare instance varibale used in PODProcess


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94234 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5a809180
......@@ -29,7 +29,8 @@ import org.apache.axis.encoding.XMLType;
@Stateless
public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeliveryConfLocal,ProofOfDeliveryConfRemote
{
String debitNoteTranID="";
String debitNoteTranID="",xmlStringAll="";
boolean isRegPriceNotFound=false;
boolean isError = false;
public static ProofOfDeliveryConf getInstance()
......@@ -191,16 +192,16 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
} //end while
System.out.println("detail2xmlString3813---->>[["+detail2xmlString+"]]");
System.out.println("Final debitNoteAmtHdr---------->> : "+debitNoteAmtHdr);
System.out.println("Final detail3AmtT in debit note table---------->> : "+detail3AmtT);
//debitNoteAmtDetail=100.10;
System.out.println("-----Debit note generation condition----------"+actualDBamount);
System.out.println("detail2xmlString---->>[["+detail2xmlString+"]]");
System.out.println("Final detail3AmtT in debit note---------->> : "+detail3AmtT);
//Debit note amount cannot less than zero.
if(detail3AmtT > 0){
errString=genDebitNote("POD",invoiceId,custCode,siteCode,xtraParams,currCode,ExchRate,detail2xmlString,detail3AmtT,conn);
System.out.println("------Error string after DN save--->>["+errString+"]");
if (errString.indexOf("Success") > -1)
{
System.out.println("Confirmation of Debit note1212112 COMMITED----------");
System.out.println("Confirmation of Debit note----------");
MiscDrCrRcpConf confDebitNote=new MiscDrCrRcpConf();
errString=confDebitNote.confirm(debitNoteTranID,xtraParams,"",conn);
//errString = confirmDebitNote("drcrrcp_dr",debitNoteTranID,xtraParams,"",conn);
......@@ -229,6 +230,12 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
return errString;
}
}else{
System.out.println("Debit note generated zero for invoice ID-->>["+invoiceId+"]");
updCnt=updatePodHeader(conn,tranId,loginCode);
if(updCnt > 0)
conn.commit();
}
} // end condition for wfstatus ='S'
......@@ -425,7 +432,8 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
xmlString=xmlBuffer.toString();
System.out.println("All XML String --->>[["+xmlBuffer.toString()+"]]");
System.out.println("All XML String --->>[["+xmlBuffer.toString()+"]]");
xmlStringAll=xmlBuffer.toString(); // xmlStringAll access in POD Process.
System.out.println("------ debit Note Data saving------------------");
retString=saveData(siteCode, xmlString, conn);
......@@ -487,7 +495,9 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
rs1.close();rs1=null;
pstmt1.close();pstmt1=null;
System.out.println("acctCodeUDF1 : "+acctCodeUDF1+" acctCodeUDF2 : "+acctCodeUDF2);
if("618ID00039".equalsIgnoreCase(invoiceId)){
acctCodeUDF1="gdgd";
}
itemUnit =getColumnDescr(conn, "unit","item","item_code", itemCode);
System.out.println("Item Code : "+itemCode+" itemCode Unit : "+itemUnit);
detail2xml.append("<Detail2 objContext =\"2\"").append(" objName=\"misc_drcr_rcp_dr\" domID=\"1\" dbID=\"\">");
......
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