Skip to content

Commit 1ac556b

Browse files
Yu TangYaroslav Voronoy
Yu Tang
authored and
Yaroslav Voronoy
committed
MAGETWO-46808: [GITHUB] Admin order creation fails when "Include Tax In Order Total" set to yes #2675
- Fixed the case when applied_taxes is in serialized form
1 parent e88177a commit 1ac556b

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/Tax/Model/Sales/Total/Quote

1 file changed

+3
-0
lines changed

app/code/Magento/Tax/Model/Sales/Total/Quote/Tax.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ public function fetch(\Magento\Quote\Model\Quote $quote, \Magento\Quote\Model\Qu
299299
$totals = [];
300300
$store = $quote->getStore();
301301
$applied = $total->getAppliedTaxes();
302+
if (is_string($applied)) {
303+
$applied = unserialize($applied);
304+
}
302305
$amount = $total->getTaxAmount();
303306
if ($amount == null) {
304307
$this->enhanceTotalData($quote, $total);

0 commit comments

Comments
 (0)