public function getShippingTaxesBreakdown()
 {
     $taxes_breakdown = array();
     $tax = new Tax();
     $tax->rate = $this->order->carrier_tax_rate;
     $tax_calculator = new TaxCalculator(array($tax));
     $total_tax_excl = $tax_calculator->removeTaxes($this->order_slip->shipping_cost_amount);
     $shipping_tax_amount = $this->order_slip->shipping_cost_amount - $total_tax_excl;
     if ($shipping_tax_amount > 0) {
         $taxes_breakdown[] = array('rate' => $this->order->carrier_tax_rate, 'total_amount' => $shipping_tax_amount, 'total_tax_excl' => $total_tax_excl);
     }
     return $taxes_breakdown;
 }
 /**
  * Returns Shipping tax breakdown elements
  *
  * @return Array Shipping tax breakdown elements
  */
 public function getShippingTaxesBreakdown()
 {
     $taxes_breakdown = array();
     $tax = new Tax();
     $tax->rate = $this->order->carrier_tax_rate;
     $tax_calculator = new TaxCalculator(array($tax));
     $customer = new Customer((int) $this->order->id_customer);
     $tax_excluded_display = Group::getPriceDisplayMethod((int) $customer->id_default_group);
     if ($tax_excluded_display) {
         $total_tax_excl = $this->order_slip->shipping_cost_amount;
         $shipping_tax_amount = $tax_calculator->addTaxes($this->order_slip->shipping_cost_amount) - $total_tax_excl;
     } else {
         $total_tax_excl = $tax_calculator->removeTaxes($this->order_slip->shipping_cost_amount);
         $shipping_tax_amount = $this->order_slip->shipping_cost_amount - $total_tax_excl;
     }
     if ($shipping_tax_amount > 0) {
         $taxes_breakdown[] = array('rate' => $this->order->carrier_tax_rate, 'total_amount' => $shipping_tax_amount, 'total_tax_excl' => $total_tax_excl);
     }
     return $taxes_breakdown;
 }