Commit 4bb29593 authored by smanohar's avatar smanohar

Auto voucher generation partial advance being auto adjusted even though voucher amount is more

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213672 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7281e172
...@@ -1989,7 +1989,7 @@ public class CreatePoRcpVoucher ...@@ -1989,7 +1989,7 @@ public class CreatePoRcpVoucher
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("Manoharan 18-dec-19 advAmt 1 [" +advAmt+"]");
if("C".equalsIgnoreCase(status)) if("C".equalsIgnoreCase(status))
{ {
advAmt = advAmt; advAmt = advAmt;
...@@ -1998,10 +1998,13 @@ public class CreatePoRcpVoucher ...@@ -1998,10 +1998,13 @@ public class CreatePoRcpVoucher
{ {
if(!close) if(!close)
{ {
advAmt = (vouchAmount * totAmt/ ordAmt); // 18-dec-2019 manoharan amount calculated was wrong
// advAmt = (vouchAmount * totAmt/ ordAmt);
advAmt = -1 * totNetAmt;
} }
} }
System.out.println("Manoharan 18-dec-19 advAmt 2 [" +advAmt+"] totNetAmt [" + totNetAmt + "] totVouchAmt [" + totVouchAmt + "] vouchAmount [" + vouchAmount + "] totAmt ["+ totAmt + "] ordAmt [" + ordAmt + "]");
if(advAmt !=0) if(advAmt !=0)
{ {
if(Math.abs(advAmt) > totNetAmt) if(Math.abs(advAmt) > totNetAmt)
......
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