Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change fields displayed in payments tab in order
Marcin Gębala45ace8f3d24b
diff --git a/saleor/dashboard/order/views.py b/saleor/dashboard/order/views.pyindex db1b54051c..15917ac994 100644--- a/saleor/dashboard/order/views.py+++ b/saleor/dashboard/order/views.py@@ -47,7 +47,7 @@ def order_details(request, order_pk):'groups', 'groups__items'))order = get_object_or_404(qs, pk=order_pk)notes = order.notes.all()- all_payments = order.payments.all()+ all_payments = order.payments.exclude(status='input')payment = order.payments.last()groups = list(order)captured = preauthorized = Price(0, currency=order.get_total().currency)diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.htmlindex 4026a17ade..d5b4b73576 100644--- a/templates/dashboard/order/detail.html+++ b/templates/dashboard/order/detail.html@@ -1,4 +1,5 @@{% extends "dashboard/base.html" %}+{% load babel %}{% load prices_i18n %}{% load i18n %}{% load materializecss %}@@ -389,22 +390,22 @@<table class="bordered hoverable responsive data-table"><thead><tr>- <th></th>+ <th>{% trans "Transaction ID" context "Payment history table header" %}</th><th>{% trans "Date" context "Payment history table header" %}</th>- <th class="wide">{% trans "Payment status" context "Payment history table header" %}</th>+ <th>{% trans "Payment status" context "Payment history table header" %}</th>+ <th>{% trans "Fraud status" context "Payment history table header" %}</th>+ <th>{% trans "Amount" context "Payment history table header" %}</th></tr></thead><tbody>{% for payment in all_payments %}<tr>- <td>- {% blocktrans trimmed with payment_id=payment.id context "Payment item column data" %}- #{{ payment_id }}- {% endblocktrans %}- </td>+ <td>{{ payment.transaction_id|default:"-" }}</td><td>{{ payment.created }}</td><td>{% render_status payment.status payment.get_status_display %}</td>+ <td>{% render_status payment.fraud_status payment.fraud_status %}</td>+ <td>{{ payment.total|currencyfmt:payment.currency }}</td></tr>{% endfor %}</tbody>