Bug #96081
maelis, TypeError: conversion from NoneType to Decimal is not supported
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
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.
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 :
- URL : https://git.entrouvert.org/entrouvert/passerelle/pulls/642
- Titre : toulouse-maelis: advertise and ignore free invoice (#96081)
- Modifications : https://git.entrouvert.org/entrouvert/passerelle/pulls/642/files