Correzione MI4354, relativo alla stampa localita' Cli/Fo

git-svn-id: svn://10.65.10.50/trunk@4249 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1997-04-02 11:02:16 +00:00
parent a7a9166fb1
commit a8d4d9d952

View File

@ -2141,7 +2141,10 @@ bool CG4400_application::preprocess_page(int file, int counter)
ragsoc = descrcau;
else
{
if (ocfpi.trim().empty())
ocfpi.trim();
comune = "";
prov = "";
if (ocfpi.empty())
{
TRectype dep = ricerca_cf(tipocf, codcf);
ragsoc = dep.get (CLI_RAGSOC);
@ -2149,6 +2152,7 @@ bool CG4400_application::preprocess_page(int file, int counter)
civcf = dep.get (CLI_CIVCF);
capcf = dep.get (CLI_CAPCF);
comcf = dep.get (CLI_COMCF);
comune = dep.get (CLI_LOCCF);
char tipoa = dep.get_char(CLI_TIPOAPER);
if (tipoa == 'F')
{
@ -2170,8 +2174,11 @@ bool CG4400_application::preprocess_page(int file, int counter)
comcf = dep.get (OCC_COM);
}
TRectype com = look_comuni(comcf);
comune = com.get(COM_DENCOM);
prov = com.get(COM_PROVCOM);
if (!com.empty())
{
comune = com.get(COM_DENCOM);
prov = com.get(COM_PROVCOM);
}
}
_tipodoc = mov.get(MOV_TIPODOC);