Common/View/ViewBuilder.php
private function buildSaleTaxesViews(Model\SaleInterface $sale)
    {
        if (!$this->options['taxes_view']) {
            return;
        }

        $amounts = $this->amountCalculator->calculateSale($sale);

        foreach ($amounts->getTaxAdjustments() as $tax) {
            $this->view->addTax(new TaxView(
                $tax->getName(),
                $this->formatter->currency($tax->getAmount())
            ));
        }
    }
private function buildSaleTaxesViews(Model\SaleInterface $sale)
    {
        if (!$this->options['taxes_view']) {
            return;
        }

        $amounts = $this->amountCalculator->calculateSale($sale);

        foreach ($amounts->getTaxAdjustments() as $tax) {
            $this->view->addTax(new TaxView(
                $tax->getName(),
                $this->formatter->currency($tax->getAmount())
            ));
        }
    }
private function buildSaleTaxesViews ( Model \ SaleInterface $ sale ) { if ( ! $ this -> options [ 'taxes_view' ] ) { return ; } $ amounts = $ this -> amountCalculator -> calculateSale ( $ sale ) ; foreach ( $ amounts -> getTaxAdjustments ( ) as $ tax ) { $ this -> view -> addTax ( new TaxView ( $ tax -> getName ( ) , $ this -> formatter -> currency ( $ tax -> getAmount ( ) ) ) ) ; } }
Builds the sale taxes views.

@param Model\SaleInterface $sale
Builds the sale taxes views .