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