Skip to content

Commit 783f30f

Browse files
author
Alex Paliarush
committed
MAGETWO-61120: Tax and Order total not correct when discount is applied
1 parent 32d377a commit 783f30f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Tax/Model/System/Message/Notification/ApplyDiscountOnPrices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getText()
8282

8383
if ($this->isDisplayed()) {
8484
$messageDetails .= '<strong>';
85-
$messageDetails .= __('To apply the discount on prices including tax and apply the tax after discount, set Catalog Prices to “Including Price”. ');
85+
$messageDetails .= __('To apply the discount on prices including tax and apply the tax after discount, set Catalog Prices to “Including Tax”. ');
8686
$messageDetails .= '</strong><p>';
8787
$messageDetails .= __('Store(s) affected: ');
8888
$messageDetails .= implode(', ', $this->getStoresWithWrongSettings());

app/code/Magento/Tax/Test/Unit/Model/System/Message/Notification/ApplyDiscountOnPricesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testGetText()
151151
$this->applyDiscountOnPricesNotification->isDisplayed();
152152
$this->assertEquals(
153153
'<strong>To apply the discount on prices including tax and apply the tax after discount, '
154-
. 'set Catalog Prices to “Including Price”. </strong><p>Store(s) affected: testWebsiteName '
154+
. 'set Catalog Prices to “Including Tax”. </strong><p>Store(s) affected: testWebsiteName '
155155
. '(testStoreName)</p><p>Click on the link to '
156156
. '<a href="http://example.com">ignore this notification</a></p>',
157157
$this->applyDiscountOnPricesNotification->getText()

0 commit comments

Comments
 (0)