Fix annulation K-Psul

Le cas où une commande est annulée dans le temps avant CANCEL_DURATION
ne pose plus problème.
This commit is contained in:
Aurélien Delobelle 2016-08-19 06:39:25 +02:00
parent 3e96932a5b
commit 056fb610de

View file

@ -740,11 +740,12 @@ def kpsul_cancel_operations(request):
'amount': opegroup['amount'],
'on_acc__is_cof': opegroup['on_acc__cofprofile__is_cof'],
})
canceled_by__trigramme = canceled_by and canceled_by.trigramme or None
for ope in opes:
websocket_data['opes'].append({
'cancellation': True,
'id': ope,
'canceled_by__trigramme': canceled_by.trigramme,
'canceled_by__trigramme': canceled_by,
'canceled_at': canceled_at,
})
# Need refresh from db cause we used update on querysets