Skip to content

Commit d0329da

Browse files
author
Michael Logvin
committed
Merge branch 'MAGETWO-44191' of github.corp.magento.com:magento-firedrakes/magento2ce into MAGETWO-44191
2 parents e18a0c4 + a07fa18 commit d0329da

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Totals.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ protected function _construct()
8383
*/
8484
public function getTotals()
8585
{
86+
$this->getQuote()->setTotalsCollectedFlag(false);
87+
$this->getQuote()->collectTotals();
8688
if ($this->getQuote()->isVirtual()) {
8789
$totals = $this->getQuote()->getBillingAddress()->getTotals();
8890
} else {

app/code/Magento/Sales/Test/Unit/Block/Order/Create/TotalsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ protected function setUp()
8787
public function testGetTotals($isVirtual)
8888
{
8989
$expected = 'expected';
90+
$this->quoteMock->expects($this->at(0))->method('setTotalsCollectedFlag')->with(false);
91+
$this->quoteMock->expects($this->at(1))->method('collectTotals');
9092
$this->quoteMock->expects($this->once())->method('isVirtual')->willreturn($isVirtual);
9193
if ($isVirtual) {
9294
$this->billingAddressMock->expects($this->once())->method('getTotals')->willReturn($expected);

0 commit comments

Comments
 (0)