Skip to content

Commit

Permalink
Fixed Product Tax total on PDF for 2.3, Reference of PL #18649
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-rajawat committed Nov 4, 2018
1 parent b831a20 commit 73ff7cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/code/Magento/Weee/Model/Sales/Pdf/Weee.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,17 @@ public function getTotalsForDisplay()

return $totals;
}

/**
* Check if we can display Weee total information in PDF
*
* @return bool
*/
public function canDisplay()
{
$items = $this->getSource()->getAllItems();
$store = $this->getSource()->getStore();
$amount = $this->_weeeData->getTotalAmounts($items, $store);
return $this->getDisplayZero() === 'true' || $amount != 0;
}
}

0 comments on commit 73ff7cb

Please sign in to comment.