Commit Graph

55 Commits (e9973e8d410d5b01c46b433e2a1416b86c0494a0)

Author SHA1 Message Date
Stéphane Bidoul 53192385fb [IMP] mis_builder: use company currency decimal place in deciding if initial balances are null or 0 2016-05-24 08:31:29 +02:00
Stéphane Bidoul 189483bba6 [IMP] mis_builder: change precision rounding from 2 to 4 to distinguish 0 from null in initial balances
This should be slightly on the safer side. Ideally, this rounding precision
should come from the kpi style (which defaults to the report style), but
that would be a lot of code for little benefits.
2016-05-23 18:29:46 +02:00
Stéphane Bidoul f4a9b0d082 [FIX] mis_builder: typo in docstring 2016-05-23 18:03:37 +02:00
Stéphane Bidoul d2bc009961 [WIP] mis_builder refactoring: restore drilldown with support for account details 2016-05-13 21:40:33 +02:00
Stéphane Bidoul e7126a0689 [FIX] mis_builder: aep issue with smart ending balance computation 2016-05-08 11:48:53 +02:00
Stéphane Bidoul 378d168e50 [IMP] mis_builder: AEP: replace_exprs_by_account_id now works on a list of expressions 2016-05-06 15:46:58 +02:00
Stéphane Bidoul f0b2a6b563 [IMP] mis_builder improve AEP convenience methods 2016-05-02 09:07:13 +02:00
Stéphane Bidoul 466cd6087f [IMP] mis_builder: convenience methods to obtain balance and unallocated p&l
plus improve mechanism to group by account
2016-05-02 00:35:20 +02:00
Stéphane Bidoul 6b22cfe568 [IMP] mis_builder: unit tests for AccountingExpressionProcessor 2016-04-30 20:45:17 +02:00
Stéphane Bidoul 70f1a850a4 [FIX] mis_builder: unallocated p&l computation fix 2016-04-30 20:20:37 +02:00
Stéphane Bidoul 2d008a0b69 [IMP] mis_builder: refine handling of null initial balances
Filter out accounts which have a 0 contribution to the initial balance
2016-04-30 17:58:58 +02:00
Stéphane Bidoul 4a4e314a84 [IMP] mis_builder: split computation of ending balance in initial+variation
So if there are no moves in the period, the ending balance is
AccountingNone instead of 0.
2016-04-30 17:30:02 +02:00
Stéphane Bidoul 1466e96a6e [IMP] mis_builder: add 'u' mode for unallocated p&l 2016-04-30 17:02:12 +02:00
Stéphane Bidoul 8e34261c01 [FIX] mis_builder: fixes wrt subkpis and drilldown 2016-04-30 14:35:12 +02:00
Stéphane Bidoul 4065376c1f [WIP] mis_builder auto-detail 2016-04-29 12:11:31 +02:00
Stéphane Bidoul 46f806de2c [FIX] mis_builder: use =like instead of like to search on account codes 2016-04-29 12:11:31 +02:00
Stéphane Bidoul f0a6ae0f03 [FIX] mis_builder: fix date type for fiscal year date start computation
plus a bit of pep 8 and idiom to get ids from a recordset
2016-04-29 12:11:31 +02:00
Adrien Peiffer (ACSONE) 19fcf3b945 [FIX] Flake8 issues 2016-04-29 12:11:31 +02:00
Adrien Peiffer (ACSONE) 72d153c2cc [CHG][mis_builder] Use company to get date_from 2016-04-29 12:11:31 +02:00
Adrien Peiffer (ACSONE) 7203d99252 [FIX][mis_builder] Better with company 2016-04-29 12:11:31 +02:00
Stéphane Bidoul 5a2d226c03 [WIP] domain for initial balance depending on account type 2016-04-29 12:11:31 +02:00
Adrien Peiffer (ACSONE) 499ce4edc6 [FIX] Fix flake8 issues 2016-04-29 12:11:30 +02:00
Stéphane Bidoul 261fd683ec [FIX] reset permissions that should not have changed 2016-04-29 12:11:30 +02:00
ThomasBinsfeld 8e4e046aee [ADD] AccountingNone (singleton) to differentiate balances among which the debit and the credit are zero and balances among which debit and credit nullify 2016-04-29 12:11:30 +02:00
jbeficent d526bb94c6 [IMP] add prefixes. comes from PR #145 2016-04-29 12:11:30 +02:00
Stéphane Bidoul 1b11a87655 pep8 & co 2016-04-29 12:11:30 +02:00
Stéphane Bidoul 43edb9a818 [FIX] remove unused import 2016-04-29 12:11:30 +02:00
Stéphane Bidoul f0fe48b322 no more parent_id, no more consolidation children
Code is simpler too but here we really lose functionality.
2016-04-29 12:11:30 +02:00
Stéphane Bidoul b1a5dc51a9 Migrate aep to 9.0: periods are gone, so far, so good 2016-04-29 12:11:30 +02:00
Stéphane Bidoul f4fbab3c1e [ADD] mis_builder: hooks for analytic filtering 2015-10-27 22:01:34 +01:00
Alexis de Lattre feb11730a5 PEP8 2015-07-29 16:25:02 +02:00
Stéphane Bidoul 65c95b5a77 [IMP] mis_builder: fix docstring and improve readability of get_aml_domain_for_expr 2015-07-26 23:12:45 +02:00
Stéphane Bidoul 1850957539 [FIX] mis_builder: fix regexp in legacy mode for account codes containing letters 2015-07-26 23:12:45 +02:00
Stéphane Bidoul d5ec45aa24 [IMP] mis_builder: improve docstrings 2015-07-26 23:12:44 +02:00
Stéphane Bidoul 92eb54808c [IMP] mis_builder: add copyright header to aep.py 2015-07-26 23:12:44 +02:00
Stéphane Bidoul 615e67e02a [IMP] mis_builder: tiny refactoring 2015-07-26 23:12:43 +02:00
Stéphane Bidoul 407945e331 [IMP] mis_builder: date and modes i/e are not compatibles 2015-07-26 23:12:42 +02:00
Stéphane Bidoul 1732179507 [IMP] mis_builder: improve documentation a bit 2015-07-26 23:12:42 +02:00
Stéphane Bidoul 568242ac82 [FIX] mis_builder: fix detection of expression with accounting variables 2015-07-26 23:12:42 +02:00
Stéphane Bidoul 4493a4ec0b [IMP] mis_builder: refactor drilldown to reuse period computation and work for all modes 2015-07-26 23:12:42 +02:00
Stéphane Bidoul 55b31f9cbd [IMP] mis_builder: refactor to compute period only for modes actually used 2015-07-26 23:12:42 +02:00
Stéphane Bidoul 0ede82e6da [IMP] mis_builder: be more precise wrt the root account used
This solve issues with empty account selectors in presence of multiple companies.
2015-07-26 23:12:42 +02:00
Stéphane Bidoul 45d3477ded [IMP] mis_builder: rework periods computation
* readability of algorithm
* attempt to be correct in presence of multiple companies
* attempt to be correct with initial balance computation
* handle corner cases for initial balance
2015-07-26 23:12:42 +02:00
Stéphane Bidoul 44499e620d [IMP] mis_builder: code cosmetics 2015-07-26 23:12:42 +02:00
Adrien Peiffer (ACSONE) 36292b757f [IMP] Refactor compute_period_domain 2015-07-26 23:12:42 +02:00
Stéphane Bidoul bea9dd0229 [IMP] mis_builder: support expresisons with no accounts (domain only) 2015-07-26 23:12:42 +02:00
Stéphane Bidoul 27980dc501 [IMP] mis_builder: preliminary work to support expressions without accounts
eg expressions such as bale[][('account_id.type', '=', 'payable')]
2015-07-26 23:12:41 +02:00
Stéphane Bidoul c832bef4f3 [IMP] mis_builder: aep mode constants + prototype for period computation 2015-07-26 23:12:41 +02:00
Stéphane Bidoul fa86d99301 [FIX] mis_builder: use safe_eval in aep 2015-07-26 23:12:41 +02:00
Adrien Peiffer (ACSONE) 7b89e6d573 [IMP] Refactor improvements using AEP 2015-07-26 23:12:40 +02:00