From 98df5424853d6a094a4b08b39d106d54e26cd7ba Mon Sep 17 00:00:00 2001 From: Dario Lodeiros Date: Mon, 19 Aug 2019 13:55:22 +0200 Subject: [PATCH] [FIX] amount var cash daily report --- cash_daily_report/wizard/cash_daily_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cash_daily_report/wizard/cash_daily_report.py b/cash_daily_report/wizard/cash_daily_report.py index cc514ddec..dfde82544 100644 --- a/cash_daily_report/wizard/cash_daily_report.py +++ b/cash_daily_report/wizard/cash_daily_report.py @@ -171,7 +171,7 @@ class CashDailyReportWizard(models.TransientModel): return_journals[v_payment.journal_id.name] += -v_line.amount if v_payment.date not in total_dates: - total_dates.update({v_payment.date: {v_payment.journal_id.name: -amount}}) + total_dates.update({v_payment.date: {v_payment.journal_id.name: -v_line.amount}}) else: if v_payment.journal_id.name not in total_dates[v_payment.date]: total_dates[v_payment.date].update({v_payment.journal_id.name: -v_line.amount})