Skip to content

Commit 2dcdb7a

Browse files
committed
ACP2E-414:Fixed sales report shows base currency instead of currency of the Website
1 parent 2cb012b commit 2dcdb7a

File tree

14 files changed

+412
-16
lines changed

14 files changed

+412
-16
lines changed

app/code/Magento/Config/Test/Mftf/Section/AdminConfigSection.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@
2323
<element name="collapsibleSectionByTitle" type="text" selector="//form[@id='config-edit-form']//div[@class='section-config'][contains(.,'{{sectionTitle}}')]" parameterized="true" />
2424
<element name="expandedSectionByTitle" type="text" selector="//form[@id='config-edit-form']//div[@class='section-config active'][contains(.,'{{sectionTitle}}')]" parameterized="true" />
2525
<element name="errorElement" type="text" selector="#{{inputId}}-error" parameterized="true" />
26+
<element name="defaultCurrency" type="select" selector="#currency_options_default" />
27+
<element name="allowedCurrencies" type="multiselect" selector="#currency_options_allow" />
28+
<element name="defaultCurrencyCheckbox" type="checkbox" selector="#currency_options_default_inherit"/>
29+
<element name="allowedCurrencyCheckbox" type="checkbox" selector="#currency_options_allow_inherit"/>
2630
</section>
2731
</sections>

app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons/Grid.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ protected function _prepareColumns()
100100
]
101101
);
102102

103-
if ($this->getFilterData()->getStoreIds()) {
104-
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
105-
}
103+
$this->setStoreIds($this->_getStoreIds());
106104
$currencyCode = $this->getCurrentCurrencyCode();
107105
$rate = $this->getRate($currencyCode);
108106

app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced/Grid.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ protected function _prepareColumns()
8787
]
8888
);
8989

90-
if ($this->getFilterData()->getStoreIds()) {
91-
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
92-
}
90+
$this->setStoreIds($this->_getStoreIds());
9391
$currencyCode = $this->getCurrentCurrencyCode();
9492
$rate = $this->getRate($currencyCode);
9593

app/code/Magento/Reports/Block/Adminhtml/Sales/Refunded/Grid.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ protected function _prepareColumns()
7474
]
7575
);
7676

77-
if ($this->getFilterData()->getStoreIds()) {
78-
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
79-
}
77+
$this->setStoreIds($this->_getStoreIds());
8078
$currencyCode = $this->getCurrentCurrencyCode();
8179
$rate = $this->getRate($currencyCode);
8280

app/code/Magento/Reports/Block/Adminhtml/Sales/Shipping/Grid.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ protected function _prepareColumns()
8787
]
8888
);
8989

90-
if ($this->getFilterData()->getStoreIds()) {
91-
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
92-
}
93-
90+
$this->setStoreIds($this->_getStoreIds());
9491
$currencyCode = $this->getCurrentCurrencyCode();
9592
$rate = $this->getRate($currencyCode);
9693

app/code/Magento/Reports/Block/Adminhtml/Sales/Tax/Grid.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ protected function _prepareColumns()
131131
]
132132
);
133133

134-
if ($this->getFilterData()->getStoreIds()) {
135-
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
136-
}
134+
$this->setStoreIds($this->_getStoreIds());
137135
$currencyCode = $this->getCurrentCurrencyCode();
138136

139137
$this->addColumn(
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
9+
<page name="CouponReportPage" url="reports/report_sales/coupons/" area="admin" module="Reports">
10+
<section name="OrderReportFilterSection"/>
11+
<section name="OrderReportMainSection"/>
12+
<section name="GeneratedReportSection" />
13+
</page>
14+
</pages>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
9+
<page name="InvoiceReportPage" url="reports/report_sales/invoiced/" area="admin" module="Reports">
10+
<section name="OrderReportFilterSection"/>
11+
<section name="OrderReportMainSection"/>
12+
<section name="GeneratedReportSection" />
13+
</page>
14+
</pages>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
9+
<page name="RefundReportPage" url="reports/report_sales/refunded/" area="admin" module="Reports">
10+
<section name="OrderReportFilterSection"/>
11+
<section name="OrderReportMainSection"/>
12+
<section name="GeneratedReportSection" />
13+
</page>
14+
</pages>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
9+
<page name="ShipmentReportPage" url="reports/report_sales/shipping/" area="admin" module="Reports">
10+
<section name="OrderReportFilterSection"/>
11+
<section name="OrderReportMainSection"/>
12+
<section name="GeneratedReportSection" />
13+
</page>
14+
</pages>

0 commit comments

Comments
 (0)