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