Commit 03dafedb authored by dsawant's avatar dsawant

changes for accounting effect


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94564 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a085e853
......@@ -2113,11 +2113,12 @@ public class InvAcct
updateAcctMap.put("dr_amt", diffAmt);
updateAcctMap.put("cr_amt", 0);
}else
}
/*else
{
updateAcctMap.put("dr_amt", 0);
updateAcctMap.put("cr_amt", diffAmt);
}
}*/
System.out.println("stk credit"+diffAmt);
updateAcctMap.put("acct_code",acctCdInvR);
......@@ -2138,16 +2139,16 @@ public class InvAcct
if(amt_old > amt)
{
if(0 > diffAmt)
if(0 < diffAmt)
{
diffAmt = amt_old - amt;
updateAcctMap.put("dr_amt", 0);
updateAcctMap.put("cr_amt", diffAmt);
}else
}/*else
{
updateAcctMap.put("dr_amt", diffAmt);
updateAcctMap.put("cr_amt", 0);
}
}*/
System.out.println("stk debit1"+diffAmt+"{"+acctCdInv+"}{"+cctrCdInv+"");
updateAcctMap.put("acct_code",acctCdInv);
......
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