Commit 8ba8bf63 authored by manohar's avatar manohar

Partial adjusted allowed to hold


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94312 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 780afeb5
...@@ -99,14 +99,15 @@ public class MiscVoucherHld extends ActionHandlerEJB implements MiscVoucherHldLo ...@@ -99,14 +99,15 @@ public class MiscVoucherHld extends ActionHandlerEJB implements MiscVoucherHldLo
{ {
errCode = "VTBAL2"; // already paid off errCode = "VTBAL2"; // already paid off
} }
else if(adjAmt != 0 && adjAmt != totAmt) //else if(adjAmt != 0 && adjAmt != totAmt)
{ //{
errCode = "VTBAL2"; // partly paid off // errCode = "VTBAL2"; // partly paid off
} //}
else if (holdAmt == 0) else if (holdAmt == 0)
{ {
//Put Voucher on hold //Put Voucher on hold
updSql = "UPDATE MISC_PAYABLES SET HOLD_AMT = TOT_AMT WHERE TRAN_SER = 'M-VOUC' AND REF_NO = '"+tranID+"'"; //updSql = "UPDATE MISC_PAYABLES SET HOLD_AMT = TOT_AMT WHERE TRAN_SER = 'M-VOUC' AND REF_NO = '"+tranID+"'";
updSql = "UPDATE MISC_PAYABLES SET HOLD_AMT = TOT_AMT - ADJ_AMT WHERE TRAN_SER = 'M-VOUC' AND REF_NO = '"+tranID+"'";
System.out.println("Updating SQL :: "+updSql); System.out.println("Updating SQL :: "+updSql);
rows=stmt.executeUpdate(updSql); rows=stmt.executeUpdate(updSql);
} }
......
...@@ -103,10 +103,10 @@ public class MiscVoucherRls extends ActionHandlerEJB implements MiscVoucherRlsLo ...@@ -103,10 +103,10 @@ public class MiscVoucherRls extends ActionHandlerEJB implements MiscVoucherRlsLo
{ {
errCode = "VTBAL2"; // already paid off errCode = "VTBAL2"; // already paid off
} }
else if(adjAmt != 0 && adjAmt != totAmt) //else if(adjAmt != 0 && adjAmt != totAmt)
{ //{
errCode = "VTBAL2"; // partly paid off // errCode = "VTBAL2"; // partly paid off
} //}
else if (holdAmt > 0) else if (holdAmt > 0)
{ {
updSql="UPDATE MISC_PAYABLES SET HOLD_AMT = 0 WHERE TRAN_SER = 'M-VOUC' AND REF_NO = '"+tranID+"'"; updSql="UPDATE MISC_PAYABLES SET HOLD_AMT = 0 WHERE TRAN_SER = 'M-VOUC' AND REF_NO = '"+tranID+"'";
......
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