mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Set OrderRefund.execution_date on manual refund
This commit is contained in:
@@ -896,6 +896,11 @@ class OrderRefundView(OrderView):
|
|||||||
if self.request.POST.get('manual_state') == 'done'
|
if self.request.POST.get('manual_state') == 'done'
|
||||||
else OrderRefund.REFUND_STATE_CREATED
|
else OrderRefund.REFUND_STATE_CREATED
|
||||||
),
|
),
|
||||||
|
execution_date=(
|
||||||
|
now()
|
||||||
|
if self.request.POST.get('manual_state') == 'done'
|
||||||
|
else None
|
||||||
|
),
|
||||||
amount=manual_value,
|
amount=manual_value,
|
||||||
comment=comment,
|
comment=comment,
|
||||||
provider='manual'
|
provider='manual'
|
||||||
|
|||||||
Reference in New Issue
Block a user