Skip to content

Commit 34b2303

Browse files
committed
MC-20639: MyAccount :: Order Details :: Refund (creditMemo) Details by Order Number
1 parent d977db1 commit 34b2303

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Sales/CreditmemoTest.php

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,22 @@ public function testCreditMemoForLoggedInCustomerQuery(): void
6161
subtotal {
6262
value
6363
}
64+
base_grand_total {
65+
value
66+
}
6467
grand_total {
6568
value
6669
}
67-
shipping_amount {
70+
total_shipping {
6871
value
6972
}
73+
shipping_handling {
74+
amount_including_tax{value}
75+
amount_excluding_tax{value}
76+
total_amount{value}
77+
taxes {amount{value} title rate}
78+
discounts {amount{value} label}
79+
}
7080
adjustment {
7181
value
7282
}
@@ -118,9 +128,25 @@ public function testCreditMemoForLoggedInCustomerQuery(): void
118128
'grand_total' => [
119129
'value' => 20
120130
],
121-
'shipping_amount' => [
131+
'base_grand_total' => [
132+
'value' => 10
133+
],
134+
'total_shipping' => [
122135
'value' => 0
123136
],
137+
'shipping_handling' => [
138+
'amount_including_tax' => [
139+
'value' => 0
140+
],
141+
'amount_excluding_tax' => [
142+
'value' => 0
143+
],
144+
'total_amount' => [
145+
'value' => 0
146+
],
147+
'taxes' => [],
148+
'discounts' => [],
149+
],
124150
'adjustment' => [
125151
'value' => 1.23
126152
]

dev/tests/integration/testsuite/Magento/Sales/_files/customer_creditmemo_with_two_items.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
$creditMemo = $creditMemoFactory->createByOrder($order);
3030
$creditMemo->setAdjustment(1.23);
31+
$creditMemo->setBaseGrandTotal(10);
3132
$creditMemo->addComment('some_comment', false, true);
3233
$creditMemo->addComment('some_other_comment', false, true);
3334
$creditMemo->addComment('not_visible', false, false);

0 commit comments

Comments
 (0)