Browse Source

[FIX] add currency name in some trial balance functions

pull/408/head
hveficent 7 years ago
committed by Jordi Ballester Alomar
parent
commit
5411216a76
  1. 7
      account_financial_report_qweb/report/trial_balance.py

7
account_financial_report_qweb/report/trial_balance.py

@ -100,6 +100,7 @@ class TrialBalanceReportPartner(models.TransientModel):
initial_balance = fields.Float(digits=(16, 2))
debit = fields.Float(digits=(16, 2))
credit = fields.Float(digits=(16, 2))
currency_name = fields.Char()
final_balance = fields.Float(digits=(16, 2))
@api.model
@ -230,7 +231,8 @@ INSERT INTO
initial_balance,
debit,
credit,
final_balance
final_balance,
currency_name
)
SELECT
ra.id AS report_account_id,
@ -241,7 +243,8 @@ SELECT
rpg.initial_balance AS initial_balance,
rpg.final_debit - rpg.initial_debit AS debit,
rpg.final_credit - rpg.initial_credit AS credit,
rpg.final_balance AS final_balance
rpg.final_balance AS final_balance,
rpg.currency_name AS currency_name
FROM
report_general_ledger_qweb_partner rpg
INNER JOIN

Loading…
Cancel
Save