コード例 #1
0
 /**
  * Gets the line item for the taxes subtotal
  * @param EE_Line_Item $total_line_item of type EEM_Line_Item::type_total
  * @return \EE_Line_Item
  */
 public static function get_taxes_subtotal(EE_Line_Item $total_line_item)
 {
     $taxes = $total_line_item->get_child_line_item('taxes');
     return $taxes ? $taxes : self::create_taxes_subtotal($total_line_item);
 }
コード例 #2
0
 /**
  * Gets the line item which comprises all the taxes as children of it (ie, NOT registrations or products)
  * @return EE_Line_Item
  */
 public function get_taxes_line_item()
 {
     $taxes = $this->_grand_total->get_child_line_item('taxes');
     return $taxes ? $taxes : $this->_get_subtotal_for_taxes();
 }