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_INDIR); // come usare indir2 IND_INDIR2
|
||||||
valore << " " << indsped.get(IND_CIV);
|
valore << " " << indsped.get(IND_CIV);
|
||||||
}
|
}
|
||||||
else
|
if (valore.blank())
|
||||||
{
|
{
|
||||||
valore = occasionale ? cli_occ.get(OCC_INDIR) : cli_for.get(CLI_INDCF);
|
valore = occasionale ? cli_occ.get(OCC_INDIR) : cli_for.get(CLI_INDCF);
|
||||||
valore << ' ';
|
valore << ' ';
|
||||||
@ -522,7 +522,7 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
|||||||
{
|
{
|
||||||
if (is_sped)
|
if (is_sped)
|
||||||
valore = indsped.get(IND_COM);
|
valore = indsped.get(IND_COM);
|
||||||
else
|
if (valore.blank())
|
||||||
valore = occasionale ? cli_occ.get(OCC_COM) : cli_for.get(CLI_COMCF);
|
valore = occasionale ? cli_occ.get(OCC_COM) : cli_for.get(CLI_COMCF);
|
||||||
cf.set(valore);
|
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_STATO);
|
||||||
key << '|' << indsped.get(IND_COM);
|
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_STATO) : cli_for.get(CLI_STATOCF);
|
||||||
key << '|' << (occasionale ? cli_occ.get(OCC_COM) : cli_for.get(CLI_COMCF));
|
key << '|' << (occasionale ? cli_occ.get(OCC_COM) : cli_for.get(CLI_COMCF));
|
||||||
@ -563,7 +563,7 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
|||||||
{
|
{
|
||||||
if (is_sped)
|
if (is_sped)
|
||||||
valore = indsped.get(IND_LOCALITA);
|
valore = indsped.get(IND_LOCALITA);
|
||||||
else
|
if (valore.blank())
|
||||||
valore = occasionale ? cli_occ.get(OCC_LOCALITA) : cli_for.get(CLI_LOCCF);
|
valore = occasionale ? cli_occ.get(OCC_LOCALITA) : cli_for.get(CLI_LOCCF);
|
||||||
cf.set(valore);
|
cf.set(valore);
|
||||||
return true;
|
return true;
|
||||||
@ -572,7 +572,7 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
|||||||
{
|
{
|
||||||
if (is_sped)
|
if (is_sped)
|
||||||
valore = indsped.get(IND_CAP);
|
valore = indsped.get(IND_CAP);
|
||||||
else
|
if (valore.blank())
|
||||||
valore = occasionale ? cli_occ.get(OCC_CAP) : cli_for.get(CLI_CAPCF);
|
valore = occasionale ? cli_occ.get(OCC_CAP) : cli_for.get(CLI_CAPCF);
|
||||||
cf.set(valore);
|
cf.set(valore);
|
||||||
return true;
|
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_PTEL);
|
||||||
valore << "/" << indsped.get(IND_TEL);
|
valore << "/" << indsped.get(IND_TEL);
|
||||||
}
|
}
|
||||||
else
|
if (valore.blank())
|
||||||
{
|
{
|
||||||
if (!occasionale)
|
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_PFAX);
|
||||||
valore << "/" << indsped.get(IND_FAX);
|
valore << "/" << indsped.get(IND_FAX);
|
||||||
}
|
}
|
||||||
else
|
if (valore.blank())
|
||||||
{
|
{
|
||||||
if (!occasionale)
|
if (!occasionale)
|
||||||
{
|
{
|
||||||
@ -620,8 +620,15 @@ bool TReport_doc::msg_cliente(TVariant_stack& stack, bool is_indsped)
|
|||||||
if (in=="RAGSOC")
|
if (in=="RAGSOC")
|
||||||
{
|
{
|
||||||
if (is_sped)
|
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 = occasionale ? cli_occ.get(in) : cli_for.get(in);
|
||||||
valore.strip_double_spaces();
|
valore.strip_double_spaces();
|
||||||
cf.set(valore);
|
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 bool can_sign = can_pdf && a.has_module(FDAUT);
|
||||||
const int mail_client = xvt_mail_installed();
|
const int mail_client = xvt_mail_installed();
|
||||||
const bool can_mail = can_pdf && mail_client != 0;
|
const bool can_mail = can_pdf && mail_client != 0;
|
||||||
|
|
||||||
enable(DLG_EMAIL, can_mail);
|
enable(DLG_EMAIL, can_mail);
|
||||||
enable(DLG_SIGNMAIL, can_mail && can_sign);
|
enable(DLG_SIGNMAIL, can_mail && can_sign);
|
||||||
enable(DLG_CONFIG, can_mail && (mail_client & 0x2) != 0);
|
enable(DLG_CONFIG, can_mail && (mail_client & 0x2) != 0);
|
||||||
@ -1803,6 +1811,7 @@ void TReport_doc_app::main_loop()
|
|||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
const KEY k = _msk->run();
|
const KEY k = _msk->run();
|
||||||
|
|
||||||
if (k == K_QUIT)
|
if (k == K_QUIT)
|
||||||
break;
|
break;
|
||||||
print_selection(key2mode(k));
|
print_selection(key2mode(k));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user