forked from DGNum/gestioCOF
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:
parent
3e96932a5b
commit
056fb610de
|
@ -740,11 +740,12 @@ def kpsul_cancel_operations(request):
|
||||||
'amount': opegroup['amount'],
|
'amount': opegroup['amount'],
|
||||||
'on_acc__is_cof': opegroup['on_acc__cofprofile__is_cof'],
|
'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:
|
for ope in opes:
|
||||||
websocket_data['opes'].append({
|
websocket_data['opes'].append({
|
||||||
'cancellation': True,
|
'cancellation': True,
|
||||||
'id': ope,
|
'id': ope,
|
||||||
'canceled_by__trigramme': canceled_by.trigramme,
|
'canceled_by__trigramme': canceled_by,
|
||||||
'canceled_at': canceled_at,
|
'canceled_at': canceled_at,
|
||||||
})
|
})
|
||||||
# Need refresh from db cause we used update on querysets
|
# Need refresh from db cause we used update on querysets
|
||||||
|
|
Loading…
Reference in a new issue