We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54694e9 commit 16e6542Copy full SHA for 16e6542
ecommerce/pricing/lib/pricing/offer.rb
@@ -51,9 +51,7 @@ def apply_discount(discount)
51
data: {
52
order_id: @id,
53
type: discount.type,
54
- amount: discount.value,
55
- base_total_value: @list.base_sum,
56
- total_value: @list.actual_sum - @list.actual_sum * (discount.value / 100)
+ amount: discount.value
57
}
58
)
59
end
ecommerce/pricing/test/three_plus_one_test.rb
@@ -260,9 +260,7 @@ def test_given_3_plus_one__when_10_percent_discount_for_offer__then_offer_price_
260
261
order_id: order_id,
262
type: Discounts::GENERAL_DISCOUNT,
263
- amount: 10,
264
- base_total_value: 80,
265
- total_value: 54
+ amount: 10
266
267
),
268
OrderTotalValueCalculated.new(
0 commit comments