File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
app/code/Magento/Quote/Model/Quote/Item Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ public function __construct(
48
48
}
49
49
50
50
/**
51
+ * Convert quote item(quote address item) into order item.
52
+ *
51
53
* @param Item|AddressItem $item
52
54
* @param array $data
53
55
* @return OrderItemInterface
@@ -66,13 +68,13 @@ public function convert($item, $data = [])
66
68
if ($ item instanceof \Magento \Quote \Model \Quote \Address \Item) {
67
69
$ orderItemData = array_merge (
68
70
$ orderItemData ,
69
- $ this ->objectCopyService ->getDataFromFieldset (
70
- 'quote_convert_address_item ' ,
71
- 'to_order_item ' ,
72
- $ item
73
- )
74
- );
75
- }
71
+ $ this ->objectCopyService ->getDataFromFieldset (
72
+ 'quote_convert_address_item ' ,
73
+ 'to_order_item ' ,
74
+ $ item
75
+ )
76
+ );
77
+ }
76
78
if (!$ item ->getNoDiscount ()) {
77
79
$ data = array_merge (
78
80
$ data ,
You can’t perform that action at this time.
0 commit comments