Merge lp:~oddbloke/openobject-addons/623334 into lp:openobject-addons/5.0
Status: | Work in progress |
---|---|
Proposed branch: | lp:~oddbloke/openobject-addons/623334 |
Merge into: | lp:openobject-addons/5.0 |
Diff against target: |
313 lines (+56/-114) 3 files modified
account/report/aged_trial_balance.py (+2/-1) account/report/partner_balance.py (+8/-59) account/report/third_party_ledger.py (+46/-54) |
To merge this branch: | bzr merge lp:~oddbloke/openobject-addons/623334 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+33526@code.launchpad.net |
This proposal supersedes a proposal from 2010-08-24.
Description of the change
Fixes bug #623334, which involves Partner Account reports in the account module showing incorrect figures.
Essentially, wherever credit and debit are calculated, we now join with the account_moves that the account_move_lines are part of, to ensure that they aren't in Draft status.
In the Partner Ledger report, I've then consolidated the shared SQL strings into _get_line_sql, _get_credit_sql and _get_debit_sql.
Apologies for the proposal spam, I haven't quite got the hang of this part of LP yet.
Unmerged revisions
- 2827. By Dan Watkins
-
Fix aged_trial_balance report.
- 2826. By Dan Watkins
-
Fix individual lines in partner_balance report.
- 2825. By Dan Watkins
-
Fix grand total display in the partner_balance report.
- 2824. By Dan Watkins
-
Remove unused _sum_sdebit and _sum_scredit methods from partner_balance report.
- 2823. By Dan Watkins
-
Fix third party ledger report.
So this doesn't fully fix bug #623334, that was a mis-type. It does, however, fix the Partner Ledger report problem.