Patch level : 12.0 774

Files correlati     : velib, vebtip
Commento            :
- Aggiunto flag per non esporre dicitura non valido ai fini fiscali per F.E.
This commit is contained in:
Simone Palacino 2019-04-16 15:38:10 +02:00
parent 29531fe057
commit d1e8c48fc1
4 changed files with 12 additions and 3 deletions

View File

@ -361,6 +361,7 @@ public:
bool allega_documenti() const { return get_bool("B10"); }
bool auto_add() const { return get_bool("B11"); }
bool invio_xml() const { return get_bool("B13"); }
bool esponi_dicitura_fe() const { return !get_bool("B14"); }
const TString& stringa_descrizione_documento() const { return _str_desc_doc; }
const TString& stringa_descrizione_riga() const { return _str_desc_rdoc; }
@ -891,6 +892,7 @@ public:
void set_fields(TAuto_variable_rectype & rec);
void update_esenzione();
void set_riga_esenzione();
bool esponi_dicitura();
void set_riga_valfisc();
const TRiga_documento& get_riga_esenzione() const { return *_esenzione; }
bool ha_riga_sconto() const { return _sconto != NULL; }

View File

@ -1079,7 +1079,7 @@ void TDocumento::set_riga_esenzione()
void TDocumento::set_riga_valfisc()
{
static TDate anno_fatt_elett = TDate(01, 01, 2019);
if(is_fattura() && tipo().tipo_doc_sdi().full() && data() >= anno_fatt_elett)
if(tipo().esponi_dicitura_fe() && is_fattura() && tipo().tipo_doc_sdi().full() && data() >= anno_fatt_elett)
{
if (_valfisc == nullptr)
_valfisc = new TRiga_documento(this, "05");

View File

@ -116,6 +116,7 @@
#define F_IVA_NI 504
#define F_IVA_NS 505
#define F_ESPONIDIC 510
#define FT_GOLEM 511
#define F_ADDROW 512
#define F_QUADRO 513

View File

@ -1284,7 +1284,7 @@ BEGIN
FIELD S3[4,4]
END
GROUPBOX DLG_NULL 62 3
GROUPBOX DLG_NULL 62 4
BEGIN
PROMPT 1 8 "@bStampa documenti avanzata"
END
@ -1295,9 +1295,15 @@ BEGIN
FIELD B10
END
BOOLEAN F_ESPONIDIC
BEGIN
PROMPT 2 10 "Non esporre dicitura fattura di cortesia per FP"
FIELD B14
END
BOOLEAN F_ADDROW
BEGIN
PROMPT 2 11 "Crea 10 righe vuote in inserimento"
PROMPT 38 4 "Crea 10 righe vuote in inserimento"
FIELD B11
END