forked from CGM_Public/pretix_original
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,
|
'local_id': r.local_id,
|
||||||
'provider': r.provider,
|
'provider': r.provider,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if self.order.pending_sum + r.amount == Decimal('0.00'):
|
||||||
|
self.refund.done()
|
||||||
|
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user