summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorCedric Snauwaert <csn@openerp.com>2020-02-05 15:17:39 +0000
committerCedric Snauwaert <csn@openerp.com>2020-03-19 10:30:43 +0000
commit5b7cff06f75728103acec4d811c838a1b2d735c7 (patch)
treeebd742cc196b25c2138147395aa803b0b6531aaf /addons/web/static/src/js/views/basic/basic_renderer.js
parenteee8ecdc0217ece1af28b850d1dcaaa528301682 (diff)
[FIX] account: don't recompute ending balance of last statement
Previously a task was created to prevent holes between bank statement, meaning that starting balance should always be the same as previous ending balance. The goal was that during synchronization or imports, we could add statement lines in previous statement and not have to recompute manually the full chain of starting and ending balance of next statements entries. This works fine with online synchronization as we always write after creating the statements the balance of the account on the latest statements to detect missing stmts, however if we create stmts by hand, it is possible that we have the following case: Statement on 10 January with a starting and ending balance of 100 and 200 respectively. We are missing 2 statements with a line of 50 each before that date. So we create the first missing statement at date: 8 January with a starting balance 0 and ending balance 50, this will recompute the starting and ending balance of next statement and overwrite the values to 50 and 150 (starting and ending balance respectively). At that time the system will say that everything is normal but we are still missing a stmt and we are not seeing it. The way to fix this is by not touching the ending balance of the last stmt entry during the computation, that way we can still detect that there is an error and that 50€ are still missing. closes odoo/odoo#48000 X-original-commit: b97b4f4217989e8cae5c32be0d62c11d36eaf1d7 Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions