From 604e540268d043d38fe3dd953538d45b629446ee Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Mon, 5 Jun 2023 22:31:06 +0200 Subject: [PATCH] Patch level : 12.00 1264 Files correlati : lv0.exe lv2.exe Commento : Invio postino con ODBC --- src/lv/lv2A00.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lv/lv2A00.cpp b/src/lv/lv2A00.cpp index 6b7556fdc..20de9e0b5 100644 --- a/src/lv/lv2A00.cpp +++ b/src/lv/lv2A00.cpp @@ -88,6 +88,7 @@ void TAutogiro_app::main_loop() { TProgress_monitor pi(contratti.items(), title()); + bool modified = false; for (bool ok = contratti.move_first(); pi.addstatus() && ok; ok = contratti.move_next()) @@ -132,8 +133,14 @@ void TAutogiro_app::main_loop() } else send_transaction(pasplan.curr(), TRANSACTION_INSERT); + modified = true; } } + if (!modified) + { + pasplan.first(); + send_transaction(pasplan.curr(), TRANSACTION_INSERT); + } } log.preview(); }