Commit c9252329 authored by smanohar's avatar smanohar

In case tran_id__rcp is null (manual voucher) taken the same from vouchrcp for the 1st detail line

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211787 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e1b16a1f
...@@ -350,7 +350,22 @@ public class VoucherConf extends ActionHandlerEJB //implements ReceiptAdvConfLoc ...@@ -350,7 +350,22 @@ public class VoucherConf extends ActionHandlerEJB //implements ReceiptAdvConfLoc
pstmt = null; pstmt = null;
rs.close(); rs.close();
rs = null; rs = null;
if (tranIdRcp == null || tranIdRcp.trim().length() == 0)
{
sql = "select prcp_id from vouchrcp where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
rs = pstmt.executeQuery();
if(rs.next())
{
tranIdRcp = rs.getString("prcp_id") == null ? " ":rs.getString("prcp_id");
}
pstmt.close();
pstmt = null;
rs.close();
rs = null;
}
sql = "select status from porder where PURC_ORDER = ?"; sql = "select status from porder where PURC_ORDER = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(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