From dcad72aedd71b6e21acb6eea08feb956976ed302 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 11 Nov 1994 11:11:12 +0000 Subject: [PATCH] Correzione all' aggiornameto tracciati per gestire le ditte senza dati Corretto nome del file di include in batbues git-svn-id: svn://10.65.10.50/trunk@597 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba1100.cpp | 15 ++++++++++----- ba/batbues.uml | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ba/ba1100.cpp b/ba/ba1100.cpp index e77f69272..1e0a38d61 100755 --- a/ba/ba1100.cpp +++ b/ba/ba1100.cpp @@ -451,12 +451,17 @@ void BA1100_application::update() for (ditte.first(); !ditte.eof(); ditte.next()) { - set_firm(ditte.get_long("CODDITTA")); + const long codditta = ditte.get_long("CODDITTA"); const TRecnotype rec = ditte.recno(); - ditte.close(); - update_dir(); - convert_dir(); - ditte.open(); + + if (prefhndl->exist(codditta)) + { + set_firm(codditta); + ditte.close(); + update_dir(); + convert_dir(); + ditte.open(); + } ditte.readat(rec); } if (firm > 0) set_firm(firm); diff --git a/ba/batbues.uml b/ba/batbues.uml index 887f2be87..c41b357f8 100755 --- a/ba/batbues.uml +++ b/ba/batbues.uml @@ -1,4 +1,4 @@ -#include "batb%ues.h" +#include "batbues.h" TOOLBAR "" 0 20 0 2