We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9d1bec commit 382e550Copy full SHA for 382e550
app/code/Magento/Weee/Model/Sales/Pdf/Weee.php
@@ -70,4 +70,17 @@ public function getTotalsForDisplay()
70
71
return $totals;
72
}
73
+
74
+ /**
75
+ * Check if we can display Weee total information in PDF
76
+ *
77
+ * @return bool
78
+ */
79
+ public function canDisplay()
80
+ {
81
+ $items = $this->getSource()->getAllItems();
82
+ $store = $this->getSource()->getStore();
83
+ $amount = $this->_weeeData->getTotalAmounts($items, $store);
84
+ return $this->getDisplayZero() === 'true' || $amount != 0;
85
+ }
86
0 commit comments