Bonjour la communauté Dokos !
Mon entreprise a débuté son activité courant 2025. Ainsi notre premier exercice fiscal s’étend sur 2025 et 2026.
Nous avons donc nommé l’exercice fiscal “2025-2026” dans Dokos…
Cela génère un bug dans le rapport FEQ (fichier des écritures comptable) :
(J’ai créé un autre exercice fiscal en hors prod qui s’appelle 2027 : alors le FEQ fonctionne bien)
Vous trouverez ci-dessous le message d’erreur que j’ai réussi à collecté.
- je ne parviens pas à modifier le nom de l’année fiscal
- je ne parviens pas non plus à modifier le rapport “Fichier des écritures comptables” pour qu’il accepte en entrée “2025-2026”
Bonne journée à tous,
Hugo
Traceback (most recent call last):
File "apps/frappe/frappe/utils/data.py", line 124, in getdate
return parser.parse(string_date, dayfirst=parse_day_first).date()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "env/lib/python3.12/site-packages/dateutil/parser/_parser.py", line 1368, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "env/lib/python3.12/site-packages/dateutil/parser/_parser.py", line 643, in parse
raise ParserError("Unknown string format: %s", timestr)
dateutil.parser._parser.ParserError: Unknown string format: 2025-2026
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 110, in application
frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/__init__.py", line 1749, in call
return fn(*args, **newargs)
^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/typing_validations.py", line 30, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/erpnext/erpnext/regional/report/fichier_des_ecritures_comptables/fichier_des_ecritures_comptables.py", line 376, in export_report
report = execute(filters=filters)
^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/erpnext/erpnext/regional/report/fichier_des_ecritures_comptables/fichier_des_ecritures_comptables.py", line 15, in execute
validate_filters(filters)
File "apps/erpnext/erpnext/regional/report/fichier_des_ecritures_comptables/fichier_des_ecritures_comptables.py", line 37, in validate_filters
fiscal_year = get_fiscal_year(filters.get("fiscal_year"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/typing_validations.py", line 30, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/erpnext/erpnext/accounts/utils.py", line 64, in get_fiscal_year
fiscal_years = get_fiscal_years(
^^^^^^^^^^^^^^^^^
File "apps/erpnext/erpnext/accounts/utils.py", line 121, in get_fiscal_years
transaction_date = getdate(transaction_date)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/data.py", line 126, in getdate
frappe.throw(
File "apps/frappe/frappe/__init__.py", line 637, in throw
msgprint(
File "apps/frappe/frappe/__init__.py", line 609, in msgprint
_raise_exception()
File "apps/frappe/frappe/__init__.py", line 557, in _raise_exception
raise exc
frappe.exceptions.ValidationError: <strong>2025-2026</strong> n'est pas une date valide.
