← Back to team overview

openerp-india team mailing list archive

[Bug 1190773] Re: Chart of accounts - fiscal year periods are not sorted properly

 

** Attachment added: "chart_of_account.ogv"
   https://bugs.launchpad.net/openobject-addons/+bug/1190773/+attachment/3856680/+files/chart_of_account.ogv

** Changed in: openobject-addons
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1190773

Title:
  Chart of accounts - fiscal year periods are not sorted properly

Status in OpenERP addons & packages developed by credativ:
  New
Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Account period is sorted on ID and not opening period.

  The code in onchange handler for fiscalyear in wizard/account_chart.py
  sort period based on start and end date regardless of special period.

  Code module sorting code:
  ORDER BY p.date_start ASC
  ORDER BY p.date_stop DESC

  This causes a bug in the situation where the opening period has a
  higher ID than the first normal period in the year

  Steps to produce bug:
  * Create a new fiscalyear
  * Open the chart of accounts wizard and verify that the opening period is shown as first period
  * Remove the opening period
  * Create a new opening period (date_start is first day of the year, special=true)
  * Open the chart of accounts wizard
  * The first period shown is no longer the opening period

  The resulting chart of accounts is incorrect because opening balances
  are not shown.

To manage notifications about this bug go to:
https://bugs.launchpad.net/credativ-openerp/+bug/1190773/+subscriptions