Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use prices for initial amounts
Marcin Gębala3ba162f77642
diff --git a/saleor/dashboard/order/views.py b/saleor/dashboard/order/views.pyindex e850f6171d..fb5aa0984b 100644--- a/saleor/dashboard/order/views.py+++ b/saleor/dashboard/order/views.py@@ -45,7 +45,8 @@ def order_details(request, pk):ctx = {'order': order, 'payment': payment, 'notes': notes, 'groups': groups,'note_form': note_form}- captured = preauthorized = refunded = 0+ captured = preauthorized = refunded = Price(+ 0, currency=order.get_total().currency)if payment:ctx['can_capture'] = (payment.status == 'preauth' andorder.status != 'cancelled')