Skip to content

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

Fixed the issue for populatedb and dashboard as it was reported

NyanKiyoshi8916e5686f3b
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.py
index 1cbe19b057..f32a470323 100644
--- a/saleor/core/utils/random_data.py
+++ b/saleor/core/utils/random_data.py
@@ -385,7 +385,7 @@ def create_payment(order):
currency=settings.DEFAULT_CURRENCY,
total=order.total.gross.amount,
tax=order.total.tax.amount,
- delivery=order.shipping_price.gross.amount,
+ delivery=order.shipping_price.net.amount,
customer_ip_address=fake.ipv4(),
billing_first_name=order.billing_address.first_name,
billing_last_name=order.billing_address.last_name,
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.py
index 8930158664..43b0c7c9a9 100644
--- a/saleor/dashboard/order/forms.py
+++ b/saleor/dashboard/order/forms.py
@@ -368,7 +368,7 @@ class OrderMarkAsPaidForm(forms.Form):
'total': self.order.total.gross.amount,
'tax': self.order.total.tax.amount,
'currency': self.order.total.currency,
- 'delivery': self.order.shipping_price.gross.amount,
+ 'delivery': self.order.shipping_price.net.amount,
'description': pgettext_lazy(
'Payment description', 'Order %(order)s') % {
'order': self.order},