File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Invoice Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1212use Magento \Framework \Setup \Patch \PatchVersionInterface ;
1313use Magento \Sales \Setup \SalesSetupFactory ;
1414
15+ /**
16+ * Update credit memo grid currency code.
17+ */
1518class UpdateCreditmemoGridCurrencyCode implements DataPatchInterface, PatchVersionInterface
1619{
1720 /**
@@ -45,7 +48,7 @@ public function apply()
4548 $ connection = $ salesSetup ->getConnection ();
4649 $ creditMemoGridTable = $ salesSetup ->getTable ('sales_creditmemo_grid ' );
4750 $ orderTable = $ salesSetup ->getTable ('sales_order ' );
48-
51+ // phpcs:disable Magento2.SQL.RawQuery
4952 $ sql = "UPDATE {$ creditMemoGridTable } AS scg
5053 JOIN {$ orderTable } AS so ON so.entity_id = scg.order_id
5154 SET scg.order_currency_code = so.order_currency_code,
Original file line number Diff line number Diff line change 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='grand_total [from]']" timeout =" 30" />
21- <element name =" amountTo" type =" input" selector =" [name='grand_total [to]']" 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" />
2222 </section >
2323</sections >
Original file line number Diff line number Diff 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="grand_total [from]"] ' ,
27+ 'selector ' => 'input[name="base_grand_total [from]"] ' ,
2828 ],
2929 'grand_total_to ' => [
30- 'selector ' => 'input[name="grand_total [to]"] ' ,
30+ 'selector ' => 'input[name="base_grand_total [to]"] ' ,
3131 ],
3232 ];
3333
You can’t perform that action at this time.
0 commit comments