fix: define tax_columns below consistency
This commit is contained in:
parent
fa4f57f470
commit
3b4754f3f6
@ -127,7 +127,6 @@ def get_columns(invoice_list, additional_table_columns):
|
|||||||
|
|
||||||
expense_accounts = []
|
expense_accounts = []
|
||||||
tax_accounts = []
|
tax_accounts = []
|
||||||
tax_columns = []
|
|
||||||
unrealized_profit_loss_accounts = []
|
unrealized_profit_loss_accounts = []
|
||||||
|
|
||||||
if invoice_list:
|
if invoice_list:
|
||||||
@ -163,10 +162,11 @@ def get_columns(invoice_list, additional_table_columns):
|
|||||||
unrealized_profit_loss_account_columns = [
|
unrealized_profit_loss_account_columns = [
|
||||||
(account + ":Currency/currency:120") for account in unrealized_profit_loss_accounts
|
(account + ":Currency/currency:120") for account in unrealized_profit_loss_accounts
|
||||||
]
|
]
|
||||||
|
tax_columns = [
|
||||||
for account in tax_accounts:
|
(account + ":Currency/currency:120")
|
||||||
if account not in expense_accounts:
|
for account in tax_accounts
|
||||||
tax_columns.append(account + ":Currency/currency:120")
|
if account not in expense_accounts
|
||||||
|
]
|
||||||
|
|
||||||
columns = (
|
columns = (
|
||||||
columns
|
columns
|
||||||
|
Loading…
x
Reference in New Issue
Block a user