From 6565be82a21b657061d979dbbf18366ebb76cac8 Mon Sep 17 00:00:00 2001
From: sinergia <alejandro.ayala@onecluster.org>
Date: Wed, 2 Aug 2023 17:47:36 +0000
Subject: [PATCH] fix: se corrige descuadre positivo

---
 statement.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/statement.py b/statement.py
index fb7086a..6049ab1 100644
--- a/statement.py
+++ b/statement.py
@@ -313,7 +313,7 @@ class CloseStatement(Wizard):
                         )
                         statement.lines = statement.lines + conciliation
 
-                    if mismatch.real > 0:
+                    if mismatch and mismatch.real > 0:
                         pass
                     
                     if (config.mismatch_limit and config.account_mismatch_charge):