Patch level : nopatch

Files correlati     :
Commento        :

Correzione data DDT
This commit is contained in:
smen 2022-01-14 14:49:07 +01:00
parent bd88710d17
commit 8c65462bd0
2 changed files with 5 additions and 9 deletions

View File

@ -1896,6 +1896,8 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
TPaf_record& paf0700f = _paf_container.get_paf("PAF0700F");
paf0700f.set("P7_TIPODOC", tipo_doc_sdi(doc));
paf0700f.set("P7_DIVISA", "EUR"); // Fisso su euro in quanto effettuiamo il cambio
TDate data = doc.data();
paf0700f.set("P7_DATA", doc.data());
paf0700f.set("P7_NUMERO", complete_num_fp(doc.codice_numerazione(), doc.numero()));
paf0700f.set("P7_GESTIONE", stato_paf());

View File

@ -107,15 +107,9 @@ TDate::TDate(int day, int month, int year)
{
if (day >= 1 && day <= 31 && month >= 1 && month <= 12 && year > 0)
{
/* // 01/06/07 Tolla: Se passo il giorno 31 sicuramente voglio l'ultimo! Così passando 31/02/xx mi torna che cazzata esiste last_day qui sotto
if (day == 31)
#ifdef DBG
error_box("Mattia sei un imbecille");
#else
_val = makedata(last_day(month,year), month, year);
#endif
else */
_val = makedata(day, month, year);
if (year < 100)
year += (year <= 40) ? 2000 : 1900;
_val = makedata(day, month, year);
}
else
_val = NULLDATE;