Commit ab7bc538 authored by kshinde's avatar kshinde

bug fix credit check

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192861 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b90beac6
......@@ -667,7 +667,14 @@ public class PostOrdCreditChk
+ " from customer where cust_code = ? " ;
pstmt = conn.prepareStatement(lsSql);
pstmt.setString(1,asCustCodeBil);
if("P03".equals(lsCrPolicy.trim()))
{
pstmt.setString(1,asCustCodeBil);
}
else
{
pstmt.setString(1,asCustCodeSoldTo);
}
rs = pstmt.executeQuery();
if (rs.next())
{
......@@ -786,7 +793,14 @@ public class PostOrdCreditChk
+ " and ref_type <> ? ";
pstmt = conn.prepareStatement(lsSql);
pstmt.setString(1,asCustCodeBil);
if("P03".equals(lsCrPolicy.trim()))
{
pstmt.setString(1,asCustCodeBil);
}
else
{
pstmt.setString(1,asCustCodeSoldTo);
}
pstmt.setString(2,lsOrdNewPrd);
rs = pstmt.executeQuery();
if (rs.next())
......
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