Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public function includeTax()
*/
public function getTotalExclTax()
{
// The tax key will not exist if a quote contains no items
if (!isset($this->getTotals()['tax'])) {
return $this->getTotals()['grand_total']->getValue();
}
$excl = $this->getTotals()['grand_total']->getValue() - $this->getTotals()['tax']->getValue();
$excl = max($excl, 0);
return $excl;
Expand Down