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
This commit is contained in:
smen 2022-07-08 16:07:41 +02:00
parent 4ebd47f1c1
commit 83578dc13e

View File

@ -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))