Project

General

Profile

Bug #96081

maelis, TypeError: conversion from NoneType to Decimal is not supported

Added by Sentry Io 6 days ago. Updated 5 days ago.

Status:
Solution proposée
Priority:
Normal
Assignee:
Target version:
-
Start date:
29 September 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/128280/

TypeError: conversion from NoneType to Decimal is not supported
  File "passerelle/utils/jsonresponse.py", line 134, in api
    resp = f(*args, **kwargs)
  File "passerelle/views.py", line 565, in perform
    result = self.endpoint(request, **params)
  File "passerelle/contrib/toulouse_maelis/models.py", line 4402, in invoices
    data.append(invoice.format_content())
  File "passerelle/contrib/toulouse_maelis/models.py", line 4664, in format_content
    'amount': str(Decimal(item['amountInvoice']) - Decimal(amount_paid)),

Error occurred while processing request

History

#1

Updated by Frédéric Péters 6 days ago

  • Project changed from Suivi des traces to Passerelle
#2

Updated by Nicolas Roche 5 days ago

  • Assignee set to Nicolas Roche
#3

Updated by Nicolas Roche 5 days ago

Signalé à Toulouse : https://redmine.sigec.fr/issues/4834
Je suis d'avis d'ignorer les factures sans montant tout en loguant l'erreur pour pouvoir la signaler à Toulouse.

#4

Updated by Nicolas Roche 5 days ago

  • Status changed from Nouveau to En cours
#5

Updated by Robot Gitea 5 days ago

  • Status changed from En cours to Solution proposée

Nicolas Roche (nroche) a ouvert une pull request sur Gitea concernant cette demande :

Also available in: Atom PDF