Corretto errore MI4353.
git-svn-id: svn://10.65.10.50/trunk@4225 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4c0c8a7e32
commit
04c528aef2
@ -3850,6 +3850,7 @@ void TTransfer_file::write_clienti_fornitori(TString& record)
|
|||||||
{
|
{
|
||||||
TString sigla,key,com,comune,cap;
|
TString sigla,key,com,comune,cap;
|
||||||
int numfield = 1;
|
int numfield = 1;
|
||||||
|
bool is_foreign=FALSE;
|
||||||
TMappa_trc& trc = mappa();
|
TMappa_trc& trc = mappa();
|
||||||
|
|
||||||
sigla = record.mid(0,2);
|
sigla = record.mid(0,2);
|
||||||
@ -3875,6 +3876,8 @@ void TTransfer_file::write_clienti_fornitori(TString& record)
|
|||||||
if (fname == CLI_ALLEG)
|
if (fname == CLI_ALLEG)
|
||||||
if (field == "2")
|
if (field == "2")
|
||||||
_depclifo->put(CLI_OCCAS, (const char*) "X");
|
_depclifo->put(CLI_OCCAS, (const char*) "X");
|
||||||
|
else
|
||||||
|
if (field == "5") is_foreign = TRUE;
|
||||||
|
|
||||||
if (fname == CLI_CODALLEG)
|
if (fname == CLI_CODALLEG)
|
||||||
{
|
{
|
||||||
@ -3913,7 +3916,7 @@ void TTransfer_file::write_clienti_fornitori(TString& record)
|
|||||||
{
|
{
|
||||||
comune = "";
|
comune = "";
|
||||||
|
|
||||||
if (com.empty())
|
if (com.empty() && !is_foreign)
|
||||||
{
|
{
|
||||||
if (cap.not_empty())
|
if (cap.not_empty())
|
||||||
comune = cerca_comune_cap(cap,field);
|
comune = cerca_comune_cap(cap,field);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user