Commit 9f8c7282 authored by dpawar's avatar dpawar

check data fro spl_sales_por_hdr


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94339 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d99b0f97
......@@ -600,6 +600,13 @@ private String generateDebitNote(Connection conn,ArrayList<String> podProcessInv
if(errString.length() > 0){
errString =actualQtyPODProcessPartial(conn); //partialInvoiceMapV
System.out.println("Returing STring from actualQtyPODProcessPartial-->>["+errString+"]");
System.out.println("invdoneCnt-->>["+invdoneCnt+"]");
if(invdoneCnt==1){
conn.commit();
errCode="VTPRCCSF";
errString = itmdbAccess1.getErrorString("", errCode, "", "", conn);
return errString;
}
}
}catch(Exception e)
......@@ -1079,11 +1086,10 @@ private ArrayList<String> getDoneInvoiceIDFromMiscDrCrRcp(Connection conn,ArrayL
/* sql1="select d.line_no__invtrace,d.item_code,d.quantity,h.remarks from "
+ "misc_drcr_rcp h,misc_drcr_rdet d where h.tran_id=d.tran_id and h.remarks "
+ "like ? order by line_no__invtrace";*/
sql1="select sum(nvl(d.quantity,0)) as Quantity,d.item_code"
+" from misc_drcr_rcp h,misc_drcr_rdet d where h.tran_id=d.tran_id and h.remarks"
+" like ? and Quantity <> 0 group by d.item_code";
sql1="select sum(nvl(d.quantity__resale,0)),d.item_code from spl_sales_por_hdr h,spl_sales_por_det d "
+ "where h.tran_id = d.tran_id and h.invoice_id = ? group by d.item_code";
pstmt1=conn.prepareStatement(sql1);
pstmt1.setString(1, "%POD%"+id+"%");
pstmt1.setString(1, id);
rs1=pstmt1.executeQuery();
while(rs1.next()){
//lineNoTraceM=rs1.getInt(1);
......@@ -1099,6 +1105,7 @@ private ArrayList<String> getDoneInvoiceIDFromMiscDrCrRcp(Connection conn,ArrayL
}else{
it.remove();
inv45dayListL.remove(id);
break;
}
}
if(rs1!=null){
......
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