Patch level : 12.0 1078

Files correlati     : ve0.exe ve1.exe fp0.exe batbtpe.msk

Commento        :
Resa opzionale la data di registrazione nelle descrizione va indicato nella tabella tipi di esenzione.
This commit is contained in:
Alessandro Bonazzi 2021-09-09 13:30:42 +02:00
parent b76135aaa5
commit 2032eebfb3
5 changed files with 13 additions and 3 deletions

View File

@ -4,4 +4,5 @@
#define F_FLD 103
#define F_PROMPT 104
#define F_NO_PRINT 105
#define F_NO_DATE 106

View File

@ -52,6 +52,12 @@ BEGIN
FIELD B0
END
BOOLEAN F_NO_DATE
BEGIN
PROMPT 1 11 "Non indicare la data di registrazione"
FIELD B1
END
ENDPAGE
ENDMASK

View File

@ -66,7 +66,7 @@ END
BOOLEAN F_CF_ORIG
BEGIN
PROMPT 2 5 "Uitlizza il cliente originale nelle fatture"
PROMPT 2 5 "Utilizza il cliente originale nelle fatture"
END
SPREADSHEET F_DOC_SHEET 45 -1

View File

@ -412,7 +412,7 @@ bool TLi_manager::utilizza_plafond(const TDocumento & d, TToken_string & plafs,
return ok;
}
int TLi_manager::get_plafond_row(const TDocumento & d, TString & protinf, TString & protins, TDate & dataprot, real & utilizzo, TString & field, TString & descr, bool & to_print, int num) const
int TLi_manager::get_plafond_row(const TDocumento & d, TString & protinf, TString & protins, TDate & dataprot, real & utilizzo, TString & field, TString & descr, bool & to_print, bool & add_date, int num) const
{
TToken_string plafs(d.get(DOC_PLAFOND), ',');
const int plafsitems = plafs.items();
@ -423,6 +423,7 @@ int TLi_manager::get_plafond_row(const TDocumento & d, TString & protinf, TStrin
field.cut(0);
descr.cut(0);
to_print = false;
add_date = true;
if (num >= 0 && num < plafsitems)
{
TToken_string plaf = plafs.get(num);
@ -446,12 +447,14 @@ int TLi_manager::get_plafond_row(const TDocumento & d, TString & protinf, TStrin
field = rectype.get("S4");
descr = rectype.get("S1");
to_print = !rectype.get_bool("B0");
add_date = !rectype.get_bool("B1");
}
else
{
field = "Dich.Inten";
descr = "N.di protocollo di invio";
to_print = true;
add_date = true;
}
}
return ++num;

View File

@ -91,7 +91,7 @@ public:
// Utilizza il plafond
bool utilizza_plafond(const TDocumento & d, TToken_string & plafs, const real importo);
// Ritorna il tipo di plafond dell'iesimo plafond del documento
int get_plafond_row(const TDocumento & d, TString & protinf, TString & protins, TDate & dataprot, real & utilizzo, TString & field, TString & descr, bool & toprint, int num = 0) const;
int get_plafond_row(const TDocumento & d, TString & protinf, TString & protins, TDate & dataprot, real & utilizzo, TString & field, TString & descr, bool & toprint, bool & add_date, int num = 0) const;
// Functions
// Aggiunge a una lettera d'intento