Skip to content

Commit aebd8ea

Browse files
committed
Fix issue with verification of date from DatiGeneraliDocumento.Data
1 parent 8fbde87 commit aebd8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PyFePA/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def globalvalidation(fattura):
9797
and fattura.FatturaElettronicaHeader.CedentePrestatore.DatiAnagrafici.Anagrafica.Denominazione is None:
9898
raise ValidateException('Denominazione Azienda Mancante')
9999
for feb in fattura.FatturaElettronicaBody:
100-
if feb.DatiGenerali.DatiGeneraliDocumento.Data > datetime.date.today():
100+
if feb.DatiGenerali.DatiGeneraliDocumento.Data > datetime.datetime.today():
101101
print(feb.DatiGenerali.DatiGeneraliDocumento.Data, '- TODAY -', datetime.date.today())
102102
raise ValidateException('00403 - Data Fattura non puo essere nel futuro')
103103
for ln in feb.DatiBeniServizi.DettaglioLinee:

0 commit comments

Comments
 (0)