We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6f87f5 commit 198f348Copy full SHA for 198f348
app/models/solidus_paypal_commerce_platform/paypal_order.rb
@@ -92,7 +92,7 @@ def breakdown
92
item_total: price(@order.item_total),
93
shipping: price(@order.shipment_total),
94
tax_total: price(@order.additional_tax_total),
95
- discount: price(@order.all_adjustments.promotion.sum(&:amount).abs)
+ discount: price(@order.promo_total.abs)
96
}
97
end
98
spec/models/solidus_paypal_commerce_platform/paypal_order_spec.rb
@@ -70,6 +70,12 @@
70
)
71
72
73
+
74
+ context 'when an order has an inapplicable promo adjustment' do
75
+ it 'does not include it in the paypal order break' do
76
+ # TODO
77
+ end
78
79
80
81
private
0 commit comments