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 12
12
use Magento \Framework \Setup \Patch \PatchVersionInterface ;
13
13
use Magento \Sales \Setup \SalesSetupFactory ;
14
14
15
+ /**
16
+ * Update credit memo grid currency code.
17
+ */
15
18
class UpdateCreditmemoGridCurrencyCode implements DataPatchInterface, PatchVersionInterface
16
19
{
17
20
/**
@@ -45,7 +48,7 @@ public function apply()
45
48
$ connection = $ salesSetup ->getConnection ();
46
49
$ creditMemoGridTable = $ salesSetup ->getTable ('sales_creditmemo_grid ' );
47
50
$ orderTable = $ salesSetup ->getTable ('sales_order ' );
48
-
51
+ // phpcs:disable Magento2.SQL.RawQuery
49
52
$ sql = "UPDATE {$ creditMemoGridTable } AS scg
50
53
JOIN {$ orderTable } AS so ON so.entity_id = scg.order_id
51
54
SET scg.order_currency_code = so.order_currency_code,
Original file line number Diff line number Diff line change 17
17
<element name =" filters" type =" button" selector =" //div[@id='sales_order_view_tabs_order_invoices_content']//button[@data-action='grid-filter-expand']" timeout =" 30" />
18
18
<element name =" applyFilters" type =" button" selector =" //div[@id='sales_order_view_tabs_order_invoices_content']//button[@data-action='grid-filter-apply']" timeout =" 30" />
19
19
<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" />
22
22
</section >
23
23
</sections >
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ class Grid extends \Magento\Ui\Test\Block\Adminhtml\DataGrid
24
24
'selector ' => 'input[name="order_increment_id"] ' ,
25
25
],
26
26
'grand_total_from ' => [
27
- 'selector ' => 'input[name="grand_total [from]"] ' ,
27
+ 'selector ' => 'input[name="base_grand_total [from]"] ' ,
28
28
],
29
29
'grand_total_to ' => [
30
- 'selector ' => 'input[name="grand_total [to]"] ' ,
30
+ 'selector ' => 'input[name="base_grand_total [to]"] ' ,
31
31
],
32
32
];
33
33
You can’t perform that action at this time.
0 commit comments