~zaber/openobject-addons/stable_5.0-extra-addons

Viewing all changes in revision 4301.

  • Committer: Borja L.S.
  • Date: 2010-04-23 11:58:01 UTC
  • Revision ID: borjals@pexego.es-20100423115801-9ldnkuttescxlqme
[FIX] account_financial_report: Rewrite of the full balance report.

  On revno 4274 (2010-04-13) some fixes where performed to ensure
  closed fiscal years where displayed propertly; but this fixes        
  aren't enought to cover all the use cases.
  Also a fix was applied to calculate the balance with the same context 
  as the debit/credit of the account. This does not work on fiscal years 
  with opening moves on special periods. 
  
  So these are the changes on the full balance report:
  
  - The wizard view layout has been complety redesigned. Now it 
    is more intuitive, and all the options can be set on a single screen.
    
  - The wizard view now sets the domain of the fields (shows only
    periods in the selected fiscal year, shows only accounts for the 
    selected company)
    
  - The report file has been simplified (removed uneeded lines) so it
    is slighty faster.
    
  - The computation of the lines has been complety reworked:
    + Now it is able to get propertly the balance and initial balance 
      when there is an opening move on the current fiscal year.
    + If the user does not select a fiscal year, the current fiscal year
      is shown, but all the open fiscal years are used to calculate the
      balance and initial balance. That means that you can see the final
      balance of the current fiscal year even if the previous fiscal year
      hasn't been closed (same results as not selecting a fiscal year on 
      the chart of accounts wizard).
    + The code is more clean.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: