Skip to content

Commit 347467c

Browse files
committed
MC-22827: Revert ticket ENGCOM-5194 which cause BIC on 2.3.4
1 parent 1ebd7cc commit 347467c

File tree

9 files changed

+11
-102
lines changed

9 files changed

+11
-102
lines changed

app/code/Magento/Sales/Setup/Patch/Data/UpdateCreditmemoGridCurrencyCode.php

Lines changed: 0 additions & 85 deletions
This file was deleted.

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderInvoicesTabSection.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<element name="filters" type="button" selector="//div[@id='sales_order_view_tabs_order_invoices_content']//button[@data-action='grid-filter-expand']" timeout="30"/>
1818
<element name="applyFilters" type="button" selector="//div[@id='sales_order_view_tabs_order_invoices_content']//button[@data-action='grid-filter-apply']" timeout="30"/>
1919
<element name="invoiceId" type="input" selector="//div[@id='sales_order_view_tabs_order_invoices_content']//input[@name='increment_id']" timeout="30"/>
20-
<element name="amountFrom" type="input" selector="[name='base_grand_total[from]']" timeout="30"/>
21-
<element name="amountTo" type="input" selector="[name='base_grand_total[to]']" timeout="30"/>
20+
<element name="amountFrom" type="input" selector="[name='grand_total[from]']" timeout="30"/>
21+
<element name="amountTo" type="input" selector="[name='grand_total[to]']" timeout="30"/>
2222
</section>
23-
</sections>
23+
</sections>

app/code/Magento/Sales/etc/db_schema.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,8 +1386,6 @@
13861386
comment="Adjustment Negative"/>
13871387
<column xsi:type="decimal" name="order_base_grand_total" scale="4" precision="20" unsigned="false"
13881388
nullable="true" comment="Order Grand Total"/>
1389-
<column xsi:type="varchar" name="order_currency_code" nullable="true" length="3" comment="Order Currency Code"/>
1390-
<column xsi:type="varchar" name="base_currency_code" nullable="true" length="3" comment="Base Currency Code"/>
13911389
<constraint xsi:type="primary" referenceId="PRIMARY">
13921390
<column name="entity_id"/>
13931391
</constraint>

app/code/Magento/Sales/etc/db_schema_whitelist.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,9 +815,7 @@
815815
"shipping_and_handling": true,
816816
"adjustment_positive": true,
817817
"adjustment_negative": true,
818-
"order_base_grand_total": true,
819-
"order_currency_code": true,
820-
"base_currency_code": true
818+
"order_base_grand_total": true
821819
},
822820
"index": {
823821
"SALES_CREDITMEMO_GRID_ORDER_INCREMENT_ID": true,
@@ -1247,4 +1245,4 @@
12471245
"SALES_ORDER_STATUS_LABEL_STORE_ID_STORE_STORE_ID": true
12481246
}
12491247
}
1250-
}
1248+
}

app/code/Magento/Sales/etc/di.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,6 @@
641641
<item name="adjustment_positive" xsi:type="string">sales_creditmemo.adjustment_positive</item>
642642
<item name="adjustment_negative" xsi:type="string">sales_creditmemo.adjustment_negative</item>
643643
<item name="order_base_grand_total" xsi:type="string">sales_order.base_grand_total</item>
644-
<item name="order_currency_code" xsi:type="string">sales_order.order_currency_code</item>
645-
<item name="base_currency_code" xsi:type="string">sales_order.base_currency_code</item>
646644
</argument>
647645
</arguments>
648646
</virtualType>

app/code/Magento/Sales/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_Sales">
9+
<module name="Magento_Sales" >
1010
<sequence>
1111
<module name="Magento_Rule"/>
1212
<module name="Magento_Catalog"/>

app/code/Magento/Sales/view/adminhtml/ui_component/sales_order_creditmemo_grid.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
<column name="base_grand_total" class="Magento\Sales\Ui\Component\Listing\Column\Price">
120120
<settings>
121121
<filter>textRange</filter>
122-
<label translate="true">Refunded (Base)</label>
122+
<label translate="true">Refunded</label>
123123
</settings>
124124
</column>
125125
<column name="order_status" component="Magento_Ui/js/grid/columns/select">
@@ -194,7 +194,7 @@
194194
<visible>false</visible>
195195
</settings>
196196
</column>
197-
<column name="subtotal" class="Magento\Sales\Ui\Component\Listing\Column\PurchasedPrice">
197+
<column name="subtotal" class="Magento\Sales\Ui\Component\Listing\Column\Price">
198198
<settings>
199199
<filter>textRange</filter>
200200
<label translate="true">Subtotal</label>

app/code/Magento/Sales/view/adminhtml/ui_component/sales_order_view_invoice_grid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<label translate="true">Status</label>
131131
</settings>
132132
</column>
133-
<column name="base_grand_total" class="Magento\Sales\Ui\Component\Listing\Column\Price">
133+
<column name="grand_total" class="Magento\Sales\Ui\Component\Listing\Column\PurchasedPrice">
134134
<settings>
135135
<filter>textRange</filter>
136136
<label translate="true">Amount</label>

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Invoice/Grid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class Grid extends \Magento\Ui\Test\Block\Adminhtml\DataGrid
2424
'selector' => 'input[name="order_increment_id"]',
2525
],
2626
'grand_total_from' => [
27-
'selector' => 'input[name="base_grand_total[from]"]',
27+
'selector' => 'input[name="grand_total[from]"]',
2828
],
2929
'grand_total_to' => [
30-
'selector' => 'input[name="base_grand_total[to]"]',
30+
'selector' => 'input[name="grand_total[to]"]',
3131
],
3232
];
3333

0 commit comments

Comments
 (0)