Commit ff9cfc69 authored by manohar's avatar manohar

while comparing invoice_trace amount and sales return amount rounding variation of .01 allowed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97115 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f7fc00ae
......@@ -7380,13 +7380,17 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
System.out.println( "lcQty :: " + lcQty );
System.out.println( "lcRate :: " + lcRate );
lcAmount = (lcQty * lcRate) + lcAdjAmt; // 22/04/10 manoharan uncommented
lcAmount = getReqDecimal(lcAmount,2); // 23/04/10 manoharan amount is coming in many decimals
lcInvtraceAmt = getReqDecimal(lcInvtraceAmt,2); // 15/11/10 manoharan changes done as per mail by KB (2 decimal is ok)
//lcAmount = getReqDecimal(lcAmount,2); // 23/04/10 manoharan amount is coming in many decimals
//lcInvtraceAmt = getReqDecimal(lcInvtraceAmt,2); // 15/11/10 manoharan changes done as per mail by KB (2 decimal is ok)
// changed to 3 decimail as was giving problem in certain cases
lcAmount = getReqDecimal(lcAmount,3); // 23/04/10 manoharan amount is coming in many decimals
lcInvtraceAmt = getReqDecimal(lcInvtraceAmt,3); // 15/11/10 manoharan changes done as per mail by KB (2 decimal is ok)
//lcAmount = getTotAmt( dom2 ) + lcAdjAmt; // 22/04/10 manoharan commented
System.out.println( "lcInvtraceAmt :: " + lcInvtraceAmt );
System.out.println( "lcAmount :: " + lcAmount );
if( lcAmount > lcInvtraceAmt )
// 13/10/14 manoharan allow variance of 1 paise
//if( lcAmount > lcInvtraceAmt )
if( (lcAmount > lcInvtraceAmt) && ((lcAmount - lcInvtraceAmt) > .01) )
{
errCode = "VTCRAMT";
//errString = getErrorString( childNodeName, errCode, userId );
......
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