From 7c77bd5fe82ff15e0e9c6a808ff7eb5a6d859301 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 27 Nov 2023 18:07:03 +0100
Subject: [PATCH] Fix ledger.py bug.

---
 ledger.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ledger.py b/ledger.py
index b6fe064..3071df6 100755
--- a/ledger.py
+++ b/ledger.py
@@ -354,11 +354,9 @@ class LedgerDB(PlomDB):
 
     def insert_at_date(self, lines, date):
         start_at = len(self.real_lines)
-        print("DEBUG triggered insert_at_date", date, start_at)
         for b in self.bookings:
-            if b.date_string == date:
+            if b.date_string >= date:
                 start_at = b.start_line 
-                print("DEBUG setting start_at to", start_at)
                 break
             elif b.date_string > date:
                 break
-- 
2.30.2