toulouse_maelis: add an error status to invoice (#87168)
This commit is contained in:
parent
920a871393
commit
8b55756a20
|
@ -4566,6 +4566,8 @@ class Invoice(models.Model):
|
|||
self.maelis_data['amountInvoice'] == self.maelis_data['amountPaid']
|
||||
or self.maelis_notification_date is not None
|
||||
):
|
||||
if isinstance(self.maelis_notification_data, dict) and 'error' in self.maelis_notification_data:
|
||||
return 'error'
|
||||
# payInvoice was sent to Maelis
|
||||
return 'notified'
|
||||
if self.lingo_notification_date is not None:
|
||||
|
|
Loading…
Reference in New Issue