diff --git a/src/bs/bs0300.cpp b/src/bs/bs0300.cpp index 71e40a5ea..8260f484b 100644 --- a/src/bs/bs0300.cpp +++ b/src/bs/bs0300.cpp @@ -906,28 +906,11 @@ void TSknet_sync::load_clifo(const char tipocf) cfv.put(CFV_RAGGDOC, !odbc.get("RaggDoc").as_string().blank()); - int riga = 1; - // Cerco l'ultima riga - { - TLocalisamfile app(LF_CFBAN); - TRectype rapp(LF_CFBAN); - rapp.put("TIPOCF", tipocf); - rapp.put("CODCF", codcf); - rapp.put("", "V"); - if (rapp.read(app, _isgteq) == NOERR) - { - while (rapp.get("TIPOCF") == tipocf && rapp.get("CODCF") == codcf && rapp.get("TIPOBAN") == "V") - { - riga++; - rapp.next(app); - } - } - } TLocalisamfile cfb(LF_CFBAN); cfb.put("TIPOCF", tipocf); cfb.put("CODCF", codcf); cfb.put("TIPOBAN", "V"); - cfb.put("NRIGA", riga); + cfb.put("NRIGA", 1); TString cin, abi, cab, contcor, iban; if (tipocf == 'C') {