Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Make partial charged and fully charged can be both refunded

Unknowne6f632b73809
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.py
index f5a828ca6f..50157608ad 100644
--- a/saleor/dashboard/order/forms.py
+++ b/saleor/dashboard/order/forms.py
@@ -297,7 +297,7 @@ class CapturePaymentForm(ManagePaymentForm):
class RefundPaymentForm(ManagePaymentForm):
- clean_status = ChargeStatus.CHARGED
+ clean_status = (ChargeStatus.PARTIAL_CHARGED, ChargeStatus.FULLY_CHARGED)
clean_error = pgettext_lazy('Payment form error',
'Only confirmed payments can be refunded')