Skip to content

Commit 21ee858

Browse files
committed
MC-24043: "Apply discount to Shipping Amount" disabled for "Fixed amount discount for whole cart" action
1 parent 45e0641 commit 21ee858

File tree

1 file changed

+22
-22
lines changed
  • dev/tests/integration/testsuite/Magento/SalesRule/Model/Rule/Action/Discount

1 file changed

+22
-22
lines changed

dev/tests/integration/testsuite/Magento/SalesRule/Model/Rule/Action/Discount/CartFixedTest.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -431,15 +431,15 @@ public function multishippingDataProvider(): array
431431
5,
432432
[
433433
'subtotal' => 10.00,
434-
'discount_amount' => -0.7100,
434+
'discount_amount' => -1.4300,
435435
'shipping_amount' => 5.00,
436-
'grand_total' => 14.2900,
436+
'grand_total' => 13.5700,
437437
],
438438
[
439439
'subtotal' => 20.00,
440-
'discount_amount' => -1.4300,
440+
'discount_amount' => -2.8600,
441441
'shipping_amount' => 5.00,
442-
'grand_total' => 23.5700,
442+
'grand_total' => 22.1400,
443443
],
444444
[
445445
'subtotal' => 5.00,
@@ -452,15 +452,15 @@ public function multishippingDataProvider(): array
452452
10,
453453
[
454454
'subtotal' => 10.00,
455-
'discount_amount' => -1.4300,
455+
'discount_amount' => -2.8600,
456456
'shipping_amount' => 5.00,
457-
'grand_total' => 13.5700,
457+
'grand_total' => 12.1400,
458458
],
459459
[
460460
'subtotal' => 20.00,
461-
'discount_amount' => -2.8600,
461+
'discount_amount' => -5.71,
462462
'shipping_amount' => 5.00,
463-
'grand_total' => 22.1400,
463+
'grand_total' => 19.2900,
464464
],
465465
[
466466
'subtotal' => 5.00,
@@ -473,15 +473,15 @@ public function multishippingDataProvider(): array
473473
15,
474474
[
475475
'subtotal' => 10.00,
476-
'discount_amount' => -2.1400,
476+
'discount_amount' => -4.2900,
477477
'shipping_amount' => 5.00,
478-
'grand_total' => 12.8600,
478+
'grand_total' => 10.71,
479479
],
480480
[
481481
'subtotal' => 20.00,
482-
'discount_amount' => -4.2900,
482+
'discount_amount' => -8.5700,
483483
'shipping_amount' => 5.00,
484-
'grand_total' => 20.71,
484+
'grand_total' => 16.43,
485485
],
486486
[
487487
'subtotal' => 5.00,
@@ -494,15 +494,15 @@ public function multishippingDataProvider(): array
494494
30,
495495
[
496496
'subtotal' => 10.00,
497-
'discount_amount' => -4.2900,
497+
'discount_amount' => -8.5700,
498498
'shipping_amount' => 5.00,
499-
'grand_total' => 10.7100,
499+
'grand_total' => 6.4300,
500500
],
501501
[
502502
'subtotal' => 20.00,
503-
'discount_amount' => -8.5700,
503+
'discount_amount' => -17.1400,
504504
'shipping_amount' => 5.00,
505-
'grand_total' => 16.4300,
505+
'grand_total' => 7.8600,
506506
],
507507
[
508508
'subtotal' => 5.00,
@@ -511,20 +511,20 @@ public function multishippingDataProvider(): array
511511
'grand_total' => 0.00,
512512
]
513513
],
514-
'Discount > 1stOrdSubtotal + 2ndOrdSubtotal: 1st order and 2nd order get 100% discount
515-
and 3rd order get remaining discount' => [
514+
'Discount > 1stOrdSubtotal + 2ndOrdSubtotal: 1st order and 2nd order get 100% discount'
515+
. ' and 3rd order get remaining discount' => [
516516
31,
517517
[
518518
'subtotal' => 10.00,
519-
'discount_amount' => -4.4300,
519+
'discount_amount' => -8.8600,
520520
'shipping_amount' => 5.00,
521-
'grand_total' => 10.57,
521+
'grand_total' => 6.14,
522522
],
523523
[
524524
'subtotal' => 20.00,
525-
'discount_amount' => -8.8600,
525+
'discount_amount' => -17.7100,
526526
'shipping_amount' => 5.00,
527-
'grand_total' => 16.1400,
527+
'grand_total' => 7.29,
528528
],
529529
[
530530
'subtotal' => 5.00,

0 commit comments

Comments
 (0)