diff --git a/src/fp/fp0400.cpp b/src/fp/fp0400.cpp index 005610763..f93f6a830 100644 --- a/src/fp/fp0400.cpp +++ b/src/fp/fp0400.cpp @@ -540,6 +540,12 @@ int TPassive_mask::find_fornitore(TLocalisamfile& clifo) const TString fppro_tipocf = fp_db().sq_get("TIPO_CF"); const TString fppro_codcf = fp_db().sq_get("COD_CLIFOR"); + if (fppro_codcf == 2774) + { + int g = 0; + } + + // Cerco se il fornitore รจ presente in Campo int found_clifo = -1; @@ -601,6 +607,15 @@ int TPassive_mask::find_fornitore(TLocalisamfile& clifo) found_clifo = no_cf; } + if (fppro_codcf == 1501) { + int i = 0; + } + else if (fppro_codcf == 2774) + { + int g = 0; + } + + // Controllo che non abbia 4 come tipo fornitore found_clifo = found_clifo == found_piva && clifo.get(CLI_ALLEG) == "4" ? tipo_forn_4 : found_clifo;