Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4687 Lượt xem

Steps to reproduce:
In Accounting -> Reports -> Trial Balance, I select a period of one year and then I click on show accounts "with movements".

Current behavior:
In the report only appears the accounts with total balance not equal to zero.

Expected behavior:
When I check the show accounts "with movements" option, I expect that the trial balance report have all the accounts with movements in the period, that is all the accounts with debit or credit not equal to zero.

Instead of this (in account/report/account_balance.py):

if display_account == 'all':
    account_res.append(res)
if display_account in ['movement', 'not_zero'] and not currency.is_zero(res['balance']):
    account_res.append(res)

The working code will be something like this:

if display_account == 'all':
    account_res.append(res)
if display_account == 'not_zero' and not currency.is_zero(res['balance']):
    account_res.append(res)
if display_account == 'movement' and (not currency.is_zero(res['debit']) or not currency.is_zero(res['credit'])):
    account_res.append(res)


Am I correct and this is a bug or am I wrong?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If you can verify this on runbot, please file a bug report here https://github.com/odoo/odoo/issues

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 18
6023
0
thg 12 16
3624
0
thg 2 16
3307
0
thg 6 24
1086
1
thg 8 23
1792