Merge lp:~sbi/account-financial-report/account-financial-report-bug1172779 into lp:account-financial-report/trunk

Proposed by Stéphane Bidoul (Acsone)
Status: Rejected
Rejected by: Guewen Baconnier @ Camptocamp
Proposed branch: lp:~sbi/account-financial-report/account-financial-report-bug1172779
Merge into: lp:account-financial-report/trunk
Diff against target: 13 lines (+3/-0)
1 file modified
account_financial_report_webkit/report/general_ledger.py (+3/-0)
To merge this branch: bzr merge lp:~sbi/account-financial-report/account-financial-report-bug1172779
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp Needs Information
Review via email: mp+160949@code.launchpad.net

Description of the change

Proposed fix for lp:1172779 (opening entries in general ledger).

I've tested on 6.1, hence the MP against 6.1, but it should be the same on 7.0.

-sbi

To post a comment you must log in.
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hi,

Thanks for your fix!

It happens that an alternative fix has landed here: https://code.launchpad.net/~account-report-core-editor/account-financial-report/fix-gl-opening-period-show-balance

The 2 approaches are different:
 - You display all the opening entries as individual lines (as it was already done before)
 - The other branch always display sums of opening entries

Upon reflection, we prefer to display the sum, so the numbers are similar to what we see in the trial balance (it does not change too much for accounts with 1 entry, but for customer/supplier accounts, we need to sum the opening entries to correlate with the TB).

Do you bother if the other branch's fix is preferred?

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

Agreed.

On Tue, May 14, 2013 at 3:03 PM, Guewen Baconnier @ Camptocamp <
<email address hidden>> wrote:

> Review: Needs Information
>
> Hi,
>
> Thanks for your fix!
>
> It happens that an alternative fix has landed here:
> https://code.launchpad.net/~account-report-core-editor/account-financial-report/fix-gl-opening-period-show-balance
>
> The 2 approaches are different:
> - You display all the opening entries as individual lines (as it was
> already done before)
> - The other branch always display sums of opening entries
>
> Upon reflection, we prefer to display the sum, so the numbers are similar
> to what we see in the trial balance (it does not change too much for
> accounts with 1 entry, but for customer/supplier accounts, we need to sum
> the opening entries to correlate with the TB).
>
> Do you bother if the other branch's fix is preferred?
> --
>
> https://code.launchpad.net/~sbi/account-financial-report/account-financial-report-bug1172779/+merge/160949
> You are the owner of
> lp:~sbi/account-financial-report/account-financial-report-bug1172779.
>

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

> Agreed.

So I'll put the state of this MP to 'Rejected', meaning it won't be merged.

Thanks again

Unmerged revisions

25. By Stéphane Bidoul (Acsone)

[FIX] opening entries in webkit general ledger

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_financial_report_webkit/report/general_ledger.py'
2--- account_financial_report_webkit/report/general_ledger.py 2012-03-06 09:13:59 +0000
3+++ account_financial_report_webkit/report/general_ledger.py 2013-04-25 16:33:27 +0000
4@@ -104,6 +104,9 @@
5 accounts = self.get_all_accounts(new_ids, exclude_type=['view'])
6 if initial_balance_mode == 'initial_balance':
7 init_balance_memoizer = self._compute_initial_balances(accounts, start, fiscalyear)
8+ elif initial_balance_mode == 'opening_balance':
9+ opening_period_id = self.get_included_opening_period(start_period)[0]
10+ start = start_period = self.pool.get('account.period').browse(self.cursor, self.uid, opening_period_id)
11
12 ledger_lines_memoizer = self._compute_account_ledger_lines(accounts, init_balance_memoizer,
13 main_filter, target_move, start, stop)

Subscribers

People subscribed via source and target branches