Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
You do as following:
...
->pipe(new CalculatedColumn(array(
"debit_minus_credit"=>"{debit} - {credit}"
)))
->pipe(new AccumulativeColumn(array(
"total"=>"debit_minus_credit"
)))
->pipe(new RemoveColumn(array(
"debit_minus_credit"
)))
...
What above code will do is that it created a temporary debit_minus_credit column then it use the Accumulative Column to accumulate that temporarily column as save to column total. At the end we use RemoveColumn process to remove the temporary debit_minus_credit column.
Note: Assume that you have two columns with name debit and credit
Hello after a long time my situation is slightly changed and I want to display records of multiple accounts on the same page. Now I am using Table::grouping and creating a nice Opening Balance and Closing Balance lines are header and footer. However I want the AccumulativeColumn to reset for each group. How this can be achieved?
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo