'cac:TaxSubtotal', 'value' => array( array( 'name' => 'cbc:TaxableAmount', 'value' => round( $item['total_ex'], 2 ), 'attributes' => array( 'currencyID' => $this->document->order->get_currency(), ), ), array( 'name' => 'cbc:TaxAmount', 'value' => round( $item['total_tax'], 2 ), 'attributes' => array( 'currencyID' => $this->document->order->get_currency(), ), ), array( 'name' => 'cac:TaxCategory', 'value' => array( array( 'name' => 'cbc:ID', 'value' => strtoupper( $item['category'] ), ), array( 'name' => 'cbc:Name', 'value' => $item['name'], ), array( 'name' => 'cbc:Percent', 'value' => round( $item['percentage'], 1 ), ), array( 'name' => 'cac:TaxScheme', 'value' => array( array( 'name' => 'cbc:ID', 'value' => strtoupper( $item['scheme'] ), ), ), ), ), ), ), ); }, $this->document->order_tax_data ); $array = array( 'name' => 'cac:TaxTotal', 'value' => array( array( 'name' => 'cbc:TaxAmount', 'value' => round( $this->document->order->get_total_tax(), 2 ), 'attributes' => array( 'currencyID' => $this->document->order->get_currency(), ), ), $formatted_tax_array ), ); $data[] = apply_filters( 'wpo_wc_ubl_handle_TaxTotal', $array, $data, $options, $this ); return $data; } }