upstream/2025.7.1 #7

Merged
philipp merged 151 commits from upstream/2025.7.1 into master 2025-09-16 17:03:58 +00:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit 7cdccc7d8e - Show all commits

View File

@@ -373,6 +373,10 @@ class OrderOverpaidRefundBulkActionView(BaseOrderBulkActionView):
comment=_("Refund for overpayment"),
provider=payment.provider
)
instance.log_action('pretix.event.order.refund.created', {
'local_id': refund.local_id,
'provider': refund.provider,
}, user=self.request.user)
payment.payment_provider.execute_refund(refund)
return True
except (ValueError, PaymentException):

View File

@@ -300,6 +300,7 @@ def test_order_bulk_overpaid_refund_explicit_id(client, env, order1, order2):
with scopes_disabled():
assert order1.refunds.exists()
assert order1.refunds.get().amount == Decimal('2.00')
assert order1.all_logentries().count() == 1
@pytest.mark.django_db