Trial balance - wrong level for consolidation children

Bug #905345 reported by Stéphane Bidoul (Acsone)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Camptocamp Financial Addons
Fix Released
Undecided
Unassigned

Bug Description

When printing the trial balance the level field of accounts is used to determine the style of lines.

In the case of consolidation children, the level field is unrelated to the actual level in the balance report. In such situations, the level should be the level of the consolidation account (+1), and/or consolidation children should be presented in a different style.

I'm willing to create a patch, however a quick look at the code did not show an obvious way to do it without significant changes. The simplest approach I imagine consists in calculating the correct levels in the sort function, and propagate these levels down to the report in a separate dictionary { account_id: report_level }.

-sbi

Related branches

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Hi,

The linked branch has a reasonably elegant way to handle consolidation children in the trial balance.

Best regards,

-sbi

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hi,

It's now merged so I close this bug.

Thanks & Best regards

Guewen

Changed in c2c-financial-addons:
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
status: New → Fix Released
assignee: Guewen Baconnier @ Camptocamp (gbaconnier-c2c) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.