Rees, I have a patch for you to try out:
https://issues.apache.org/jira/browse/OFBIZ-2292 Let me know if it fixes this problem. I can't test it myself because there is no demo data to work with. -Adrian --- On Thu, 3/26/09, Adrian Crum <[email protected]> wrote: > From: Adrian Crum <[email protected]> > Subject: Re: r755534 breaks balance sheet Income statement > To: [email protected] > Date: Thursday, March 26, 2009, 8:28 AM > I will look into this over the weekend. > > -Adrian > > Rees Watkins wrote: > > Hi David > > > > Thanks for your reply. > > > > I'm > > afraid I do not know about the new EL stuff. The code > snippet below > > shows how accounts figures are added to a map in > > prepareIncomeStatement. glAccount.glAccountId is > correct as are the > > "amount" figures before adding to the map. > When the entry is made into > > the map glAccountId gets an underscore in the map > entry. Please could > > you maybe point out an example piece of code to > illustrate your point > > so I can look at fixing this. > > > > Thanks > > Rees > > > > <simple-method > method-name="prepareIncomeStatement" > short-description="Prepare data for the Income > Statement"> > > *** > > *** > > *** > > <if-empty > field="glAccountTotalsExpenseMap.${glAccount.glAccountId}"> > > <set > field="glAccountTotalsExpenseMap.${glAccount.glAccountId}" > value="0.0" type="BigDecimal"/> > > </if-empty> > > <calculate > field="glAccountTotalsExpenseMap.${glAccount.glAccountId}"> > > <calcop > field="glAccountTotalsExpenseMap.${glAccount.glAccountId}" > > operator="add"><calcop > field="amount" > > operator="get"/></calcop> > > </calculate> > > > > > > > >
