You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
8.3 KiB

11 years ago
  1. # -*- encoding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Authors: Nicolas Bessi, Guewen Baconnier
  5. # Copyright Camptocamp SA 2011
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as
  9. # published by the Free Software Foundation, either version 3 of the
  10. # License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. ##############################################################################
  21. {
  22. 'name': 'Financial Reports - Webkit',
  23. 'description': """
  24. Financial Reports - Webkit
  25. ==========================
  26. This module adds or replaces the following standard OpenERP financial reports:
  27. - General ledger
  28. - Trial Balance (simple or comparative view)
  29. - Partner ledger
  30. - Partner balance
  31. - Open invoices report
  32. - Aged Partner Balance
  33. Main improvements per report:
  34. -----------------------------
  35. The General ledger: details of all entries posted in your books sorted by account.
  36. * Filter by account is available in the wizard (no need to go to the
  37. Chart of Accounts to do this anymore) or by View account (the report
  38. will display all regular children accounts) i.e. you can select all
  39. P&L accounts.
  40. * The report only prints accounts with moves OR with a non
  41. null balance. No more endless report with empty accounts (field:
  42. display account is hidden)
  43. * initial balance computation on the fly if no open entry posted
  44. * Thanks to a new checkbox in the account form, you will have the
  45. possibility to centralize any account you like. This means you do
  46. not want to see all entries posted under the account VAT on sales;
  47. you will only see aggregated amounts by periods.
  48. * Counterpart account is displayed for each transaction (3 accounts max.)
  49. to ease searching.
  50. * Better ergonomy on the wizard: important information is displayed in
  51. the top part, filters are in the middle, and options are in the
  52. bottom or on a separate tab. There is more specific filtering on
  53. separate tabs. No more unique wizard layout for all financial
  54. reports (we have removed the journal tab for the GL report)
  55. * improved report style
  56. The partner ledger: details of entries relative to payable &
  57. receivable accounts posted in your books sorted by account and
  58. partner.
  59. * Filter by partner now available
  60. * Now you can see Accounts then Partner with subtotals for each
  61. account allowing you to check you data with trial balance and
  62. partner balance for instance. Accounts are ordered in the same way as
  63. in the Chart of account
  64. * Period have been added (date only is not filled in since date can be
  65. outside period)
  66. * Reconciliation code added
  67. * Subtotal by account
  68. * Alphabetical sorting (same as in partner balance)
  69. Open invoice report : other version of the partner ledger showing
  70. unreconciled / partially reconciled entries.
  71. * Possibility to print unreconciled transactions only at any date in
  72. the past (thanks to the new field: `last_rec_date` which computes
  73. the last move line reconciliation date). No more pain to get open
  74. invoices at the last closing date.
  75. * no initial balance computed because the report shows open invoices
  76. from previous years.
  77. The Trial balance: list of accounts with balances
  78. * You can either see the columns: initial balance, debit, credit,
  79. end balance or compare balances over 4 periods of your choice
  80. * You can select the "opening" filter to get the opening trial balance
  81. only
  82. * If you create an extra virtual chart (using consolidated account) of
  83. accounts for your P&L and your balance sheet, you can print your
  84. statutory accounts (with comparison over years for instance)
  85. * If you compare 2 periods, you will get the differences in values and
  86. in percent
  87. The Partner balance: list of account with balances
  88. * Subtotal by account and partner
  89. * Alphabetical sorting (same as in partner balance)
  90. Aged Partner Balance: Summary of aged open amount per partner
  91. This report is an accounting tool helping in various tasks.
  92. You can credit control or partner balance provisions computation for instance.
  93. The aged balance report allows you to print balances per partner
  94. like the trial balance but add an extra information :
  95. * It will split balances into due amounts
  96. (due date not reached à the end date of the report) and overdue amounts
  97. Overdue data are also split by period.
  98. * For each partner following columns will be displayed:
  99. * Total balance (all figures must match with same date partner balance report).
  100. This column equals the sum of all following columns)
  101. * Due
  102. * Overdue <= 30 days
  103. * Overdue <= 60 days
  104. * Overdue <= 90 days
  105. * Overdue <= 120 days
  106. * Older
  107. Hypothesis / Contraints of aged partner balance
  108. * Overdues columns will be by default be based on 30 days range fix number of days.
  109. This can be changed by changes the RANGES constraint
  110. * All data will be displayed in company currency
  111. * When partial payments, the payment must appear in the same colums than the invoice
  112. (Except if multiple payment terms)
  113. * Data granularity: partner (will not display figures at invoices level)
  114. * The report aggregate data per account with sub-totals
  115. * Initial balance must be calculated the same way that
  116. the partner balance / Ignoring the opening entry
  117. in special period (idem open invoice report)
  118. * Only accounts with internal type payable or receivable are considered
  119. (idem open invoice report)
  120. * If maturity date is null then use move line date
  121. Limitations:
  122. ------------
  123. In order to run properly this module makes sure you have installed the
  124. library `wkhtmltopdf` for the pdf rendering (the library path must be
  125. set in a System Parameter `webkit_path`).
  126. Initial balances in these reports are based either on opening entry
  127. posted in the opening period or computed on the fly. So make sure
  128. that your past accounting opening entries are in an opening period.
  129. Initials balances are not computed when using the Date filter (since a
  130. date can be outside its logical period and the initial balance could
  131. be different when computed by data or by initial balance for the
  132. period). The opening period is assumed to be the Jan. 1st of the year
  133. with an opening flag and the first period of the year must start also
  134. on Jan 1st.
  135. Totals for amounts in currencies are effective if the partner belongs to
  136. an account with a secondary currency.
  137. HTML headers and footers are deactivated for these reports because of
  138. an issue in wkhtmltopdf
  139. (http://code.google.com/p/wkhtmltopdf/issues/detail?id=656) Instead,
  140. the header and footer are created as text with arguments passed to
  141. wkhtmltopdf. The texts are defined inside the report classes.
  142. """,
  143. 'version': '1.1.0',
  144. 'author': 'Camptocamp',
  145. 'license': 'AGPL-3',
  146. 'category': 'Finance',
  147. 'website': 'http://www.camptocamp.com',
  148. 'images': [
  149. 'images/ledger.png',],
  150. 'depends': ['account',
  151. 'report_webkit'],
  152. 'init_xml': [],
  153. 'demo_xml' : [],
  154. 'update_xml': ['account_view.xml',
  155. 'data/financial_webkit_header.xml',
  156. 'report/report.xml',
  157. 'wizard/wizard.xml',
  158. 'wizard/balance_common_view.xml',
  159. 'wizard/general_ledger_wizard_view.xml',
  160. 'wizard/partners_ledger_wizard_view.xml',
  161. 'wizard/trial_balance_wizard_view.xml',
  162. 'wizard/partner_balance_wizard_view.xml',
  163. 'wizard/open_invoices_wizard_view.xml',
  164. 'wizard/aged_partner_balance_wizard.xml',
  165. 'wizard/print_journal_view.xml',
  166. 'report_menus.xml',
  167. ],
  168. # tests order matter
  169. 'test': ['tests/general_ledger.yml',
  170. 'tests/partner_ledger.yml',
  171. 'tests/trial_balance.yml',
  172. 'tests/partner_balance.yml',
  173. 'tests/open_invoices.yml',
  174. 'tests/aged_trial_balance.yml'],
  175. #'tests/account_move_line.yml'
  176. 'active': False,
  177. 'installable': True,
  178. 'application': True,
  179. }