Patch level : 12.00 1356
Files correlati : f20.dir f20.trr ve1.exe dir20.xml trc20.xml cg0200a.msk ve1.exe Commento: Aggiunto campo "aggiungi la ragione sociale" alla ragione sociale degli indirizzi
This commit is contained in:
parent
ea2878d507
commit
fc98a8c03e
@ -507,7 +507,7 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
||||
valore = indsped.get(IND_INDIR); // come usare indir2 IND_INDIR2
|
||||
valore << " " << indsped.get(IND_CIV);
|
||||
}
|
||||
else
|
||||
if (valore.blank())
|
||||
{
|
||||
valore = occasionale ? cli_occ.get(OCC_INDIR) : cli_for.get(CLI_INDCF);
|
||||
valore << ' ';
|
||||
@ -522,7 +522,7 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
||||
{
|
||||
if (is_sped)
|
||||
valore = indsped.get(IND_COM);
|
||||
else
|
||||
if (valore.blank())
|
||||
valore = occasionale ? cli_occ.get(OCC_COM) : cli_for.get(CLI_COMCF);
|
||||
cf.set(valore);
|
||||
}
|
||||
@ -548,7 +548,7 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
||||
key = indsped.get(IND_STATO);
|
||||
key << '|' << indsped.get(IND_COM);
|
||||
}
|
||||
else
|
||||
if (indsped.get(IND_COM).blank())
|
||||
{
|
||||
key = occasionale ? cli_occ.get(OCC_STATO) : cli_for.get(CLI_STATOCF);
|
||||
key << '|' << (occasionale ? cli_occ.get(OCC_COM) : cli_for.get(CLI_COMCF));
|
||||
@ -559,20 +559,20 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
||||
cf.set(valore);
|
||||
return true;
|
||||
}
|
||||
if (in.find("LOCALITACF") == 0)
|
||||
{
|
||||
if (is_sped)
|
||||
valore = indsped.get(IND_LOCALITA);
|
||||
else
|
||||
valore = occasionale ? cli_occ.get(OCC_LOCALITA) : cli_for.get(CLI_LOCCF);
|
||||
cf.set(valore);
|
||||
return true;
|
||||
}
|
||||
if (in.find("LOCALITACF") == 0)
|
||||
{
|
||||
if (is_sped)
|
||||
valore = indsped.get(IND_LOCALITA);
|
||||
if (valore.blank())
|
||||
valore = occasionale ? cli_occ.get(OCC_LOCALITA) : cli_for.get(CLI_LOCCF);
|
||||
cf.set(valore);
|
||||
return true;
|
||||
}
|
||||
if (in.find("CAP") == 0)
|
||||
{
|
||||
if (is_sped)
|
||||
valore = indsped.get(IND_CAP);
|
||||
else
|
||||
if (valore.blank())
|
||||
valore = occasionale ? cli_occ.get(OCC_CAP) : cli_for.get(CLI_CAPCF);
|
||||
cf.set(valore);
|
||||
return true;
|
||||
@ -584,7 +584,7 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
||||
valore = indsped.get(IND_PTEL);
|
||||
valore << "/" << indsped.get(IND_TEL);
|
||||
}
|
||||
else
|
||||
if (valore.blank())
|
||||
{
|
||||
if (!occasionale)
|
||||
{
|
||||
@ -606,7 +606,7 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
||||
valore = indsped.get(IND_PFAX);
|
||||
valore << "/" << indsped.get(IND_FAX);
|
||||
}
|
||||
else
|
||||
if (valore.blank())
|
||||
{
|
||||
if (!occasionale)
|
||||
{
|
||||
@ -620,8 +620,15 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
||||
if (in=="RAGSOC")
|
||||
{
|
||||
if (is_sped)
|
||||
valore = indsped.get(IND_RAGSOC);
|
||||
else
|
||||
{
|
||||
if (cli_for.get_bool(CLI_ADDRAGSOC))
|
||||
{
|
||||
valore = occasionale ? cli_occ.get(in) : cli_for.get(in);
|
||||
valore << '\n';
|
||||
}
|
||||
valore << indsped.get(IND_RAGSOC);
|
||||
}
|
||||
if (valore.blank())
|
||||
valore = occasionale ? cli_occ.get(in) : cli_for.get(in);
|
||||
valore.strip_double_spaces();
|
||||
cf.set(valore);
|
||||
@ -1133,6 +1140,7 @@ TReport_doc_mask::TReport_doc_mask() : TAutomask("ve1300a")
|
||||
const bool can_sign = can_pdf && a.has_module(FDAUT);
|
||||
const int mail_client = xvt_mail_installed();
|
||||
const bool can_mail = can_pdf && mail_client != 0;
|
||||
|
||||
enable(DLG_EMAIL, can_mail);
|
||||
enable(DLG_SIGNMAIL, can_mail && can_sign);
|
||||
enable(DLG_CONFIG, can_mail && (mail_client & 0x2) != 0);
|
||||
@ -1803,6 +1811,7 @@ void TReport_doc_app::main_loop()
|
||||
while (true)
|
||||
{
|
||||
const KEY k = _msk->run();
|
||||
|
||||
if (k == K_QUIT)
|
||||
break;
|
||||
print_selection(key2mode(k));
|
||||
|
Loading…
x
Reference in New Issue
Block a user