From 83578dc13e6c765b6e632883619641b09583fa5b Mon Sep 17 00:00:00 2001 From: smen Date: Fri, 8 Jul 2022 16:07:41 +0200 Subject: [PATCH] Patch level : 12.0 Files correlati : fp0700.cpp Commento: Corretto il seguente bug nell'invio regolarizzazioni - non si riuscivano a cancellare le fatture in XML generato anche con il flag F8 attivo --- src/fp/fp0700.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fp/fp0700.cpp b/src/fp/fp0700.cpp index cc6b9ec9c..595e9bd3b 100644 --- a/src/fp/fp0700.cpp +++ b/src/fp/fp0700.cpp @@ -715,7 +715,7 @@ void TPAR_mask::delete_paf() // Vado a riportare sui paf l'errore TSheet_field& sfld = sfield(F_REGS); TProgress_monitor pi(sfld.items(), "Cambio stato fatture"); - const TString tipodocsdi = get(F_TIPO_SDI); + FOR_EACH_SHEET_ROW_LOOP(sfld, r) { @@ -728,6 +728,7 @@ void TPAR_mask::delete_paf() long nreg = sfld.get_long_row_cell(r, S_NUMREG); const TRectype & mov = cache().get(LF_MOV, nreg); TString hfatt, bfatt; + const TString tipodocsdi = sfld.get_str_row_cell(r, S_TIPODOC); TPaf_record paf0100f("PAF0100F"); if (chiave_paf_mov(mov, tipodocsdi, hfatt, bfatt) && paf0100f.search(nullptr, hfatt, bfatt))