Browse Source

[CHG] Use tax description if it exists. Removed useless when condition

pull/364/head
Benjamin Willig 7 years ago
parent
commit
1e1bf2a301
  1. 11
      account_financial_report_qweb/report/general_ledger.py

11
account_financial_report_qweb/report/general_ledger.py

@ -896,15 +896,14 @@ SELECT
WHEN
ml.tax_line_id is not null
THEN
at.name
COALESCE(at.description, at.name)
WHEN
(SELECT count(*)
FROM account_move_line_account_tax_rel aml_at_rel
WHERE aml_at_rel.account_move_line_id = ml.id
LIMIT 1) > 0
ml.tax_line_id is null
THEN
(SELECT
array_to_string(array_agg(at.name), ', ')
array_to_string(
array_agg(COALESCE(at.description, at.name)
), ', ')
FROM
account_move_line_account_tax_rel aml_at_rel
LEFT JOIN

Loading…
Cancel
Save