Commit e5449ba6 authored by manohar's avatar manohar

DI89SUN223 file seq to store in invoice table and incremented for each day/customer


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91148 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d7ba5110
...@@ -131,7 +131,7 @@ public class DownloadCSVBatchBean implements Schedule ...@@ -131,7 +131,7 @@ public class DownloadCSVBatchBean implements Schedule
client = new TranXmlData(); client = new TranXmlData();
// 11/09/09 manoharan DI89SUN223 to store the sequence number (file suffix) in invoice table and increment for the same day // 11/09/09 manoharan DI89SUN223 to store the sequence number (file suffix) in invoice table and increment for the same day
pstmtSeq = conn.prepareStatement("SELECT MAX(download_file_seq) INVOICE WHERE CUST_CODE = ? AND TRAN_DATE = ?"); pstmtSeq = conn.prepareStatement("SELECT MAX(case when download_file_seq is null then 0 else download_file_seq end) as download_file_seq FROM INVOICE WHERE CUST_CODE = ? AND TRAN_DATE = ? AND download_YN = 'Y'");
// end 11/09/09 manoharan to store the sequence number (file suffix) in invoice table and increment for the same day // end 11/09/09 manoharan to store the sequence number (file suffix) in invoice table and increment for the same day
//start - select all the undownloaded invoice, if found, then download for each. //start - select all the undownloaded invoice, if found, then download for each.
......
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