From b9c8493c03cc1e217877a2953f628008bd15be5e Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Mon, 12 Jun 2023 23:46:56 +0200 Subject: [PATCH] Patch level : 12.00 1266 Files correlati : cg2.exe Commento : se partendo dai mastrini si cambia un conto viene dao un errore sulla contropartita --- src/cg/cg2102.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cg/cg2102.cpp b/src/cg/cg2102.cpp index 2175ed996..0216fa8aa 100755 --- a/src/cg/cg2102.cpp +++ b/src/cg/cg2102.cpp @@ -664,14 +664,13 @@ bool TPrimanota_application::cg_handler(TMask_field& f, KEY k) return f.error_box(FR("Il conto della riga %d non è completo"), i+1); if (m.insert_mode() && c.sospeso()) return f.error_box(FR("Il conto della riga %d è sospeso"), i+1); - TBill co(r, 10, 0x0); + TBill co(r, 9, 0x1); if (!co.empty() && !co.ok()) { const bool ok = f.yesno_box(FR("La contropartita della riga %d non è completa:\n" "Si desidera continuare ugualmente?"), i+1); if (!ok) return false; } - if (app().is_transaction()) { // Controlla esistenza conti nelle transazioni (visto che non c'e' controllo in inserimento)