Commit e1de26cf authored by ppatro's avatar ppatro

bug fixing Inventory Accounting as suggested by Manohran Sir


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97241 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 94ce2f10
......@@ -1170,15 +1170,20 @@ public class InvAcct
}
else
{
//Changed on 05/FEB/14 as suggested by Manohran sir.
// if the total matches the break up, then individual posting is to be done
//added by prince 27-01-06
// reset this dw so that there is no previous data, as the posting will be done from the data now generated
// all previous data has been already posted and has no use here
poRcpMap = null;
//poRcpMap = null;
poRcpMap = new HashMap();
if (addAmtHdr != 0)
{
for ( int i = 1; i < 4; i++)
{
System.out.println("PORCP DATA ["+poRcpMap.toString()+"]");
tempValue = 0;
if (i == 1 && frtAmt != 0)
{
......@@ -1227,11 +1232,20 @@ public class InvAcct
break;
}
System.out.println("tempValue ["+tempValue+"]acctCodeChrg["+acctCodeChrg+"]cctrCodeChrg["+cctrCodeChrg+"]");
if (tempValue != 0)
{
if (poRcpMap.containsKey("A" + acctCodeChrg + cctrCodeChrg + analysis1__cr + analysis2__cr + analysis3__cr )) // modify by cpatil on 09-03-13 start
{
tempMap = (HashMap) poRcpMap.get("X" + acctCodeChrg + ccrtCodeReco + analysis1__cr + analysis2__cr + analysis3__cr );
System.out.println("Inside else block poRcpMap>>>>>>>>["+poRcpMap.toString()+"]tempValue["+tempValue+"]");
//tempMap = (HashMap) poRcpMap.get("X" + acctCodeChrg + ccrtCodeReco + analysis1__cr + analysis2__cr + analysis3__cr );
tempMap = (HashMap) poRcpMap.get("A" + acctCodeChrg + cctrCodeChrg + analysis1__cr + analysis2__cr + analysis3__cr );
System.out.println("Inside else bloc k["+tempMap.toString()+"]tempValue["+tempValue+"]");
grAmount = Double.parseDouble(tempMap.get("amount").toString());
tempMap.put("amount", grAmount + tempValue);
// 07/11/13 manoharan added following line as the porcpmap to be replaced with the new amount
......@@ -1239,6 +1253,8 @@ public class InvAcct
}
else
{
System.out.println("Inside else bloc k["+tempValue+"]");
tempMap = new HashMap();
tempMap.put("type", "A");
tempMap.put("acct_code", acctCodeChrg);
......
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