Skip to content

Commit 22b4e3f

Browse files
MAGETWO-96545: Wrong calculation of invoiced items in shipment document in order with bundle product after partial invoice
- Stabilize functional test
1 parent 7de83c7 commit 22b4e3f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

dev/tests/functional/tests/app/Magento/Bundle/Test/Fixture/Cart/Item.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ public function getData($key = null)
4646
$optionData = [
4747
'title' => $checkoutOption['title'],
4848
'value' => "{$qty} x {$value} {$price}",
49-
'sku' => "{$qty} x {$value}",
50-
'partialInvoiceValue' => "{$value} {$price}",
51-
'partialInvoiceSku' => "{$value}"
49+
'sku' => "{$value}"
5250
];
5351

5452
$checkoutBundleOptions[$checkoutOptionKey] = $optionData;

dev/tests/functional/tests/app/Magento/Bundle/Test/TestStep/CreatePartialInvoiceStep.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ class CreatePartialInvoiceStep extends \Magento\Sales\Test\TestStep\CreateInvoic
2020
protected function getItems()
2121
{
2222
$items = parent::getItems();
23-
$items = $items[0]->getData()['options'];
24-
foreach ($items as &$item) {
25-
$item['value'] = $item['partialInvoiceValue'];
26-
$item['sku'] = $item['partialInvoiceSku'];
27-
}
28-
return $items;
23+
return $items[0]->getData()['options'];
2924
}
3025
}

0 commit comments

Comments
 (0)