mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
External refunds: automatically mark as done if they exactly fix an overpaid order
This commit is contained in:
@@ -1600,6 +1600,10 @@ class OrderPayment(models.Model):
|
||||
'local_id': r.local_id,
|
||||
'provider': r.provider,
|
||||
})
|
||||
|
||||
if self.order.pending_sum + r.amount == Decimal('0.00'):
|
||||
self.refund.done()
|
||||
|
||||
return r
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user