get_items( apply_filters( 'atum/atum_order/item_types', 'line_item' ) ); $line_items_fee = $atum_order->get_items( 'fee' ); $line_items_shipping = $atum_order->get_items( 'shipping' ); if ( wc_tax_enabled() ) { $taxes = $atum_order->get_taxes(); $tax_classes = WC_Tax::get_tax_classes(); $classes_options = wc_get_product_tax_class_options(); $show_tax_columns = 1 === count( $taxes ); } $currency = $atum_order->get_currency(); $post_type = get_post_type_object( get_post_type( $atum_order->get_id() ) ); // ! wp_doing_ajax allow add taxes in still non-created order items. $add_blocker = ( ! $atum_order->get_status() && ! wp_doing_ajax() ) || ( PurchaseOrders::get_post_type() === $post_type->name && empty( $line_items ) && ! $atum_order->has_multiple_suppliers() ); ?>

get_block_message() ) ?>

$tax_item ) : $tax_class = wc_get_tax_class_by_tax_id( $tax_item['rate_id'] ); $tax_class_name = isset( $classes_options[ $tax_class ] ) ? $classes_options[ $tax_class ] : __( 'Tax', ATUM_TEXT_DOMAIN ); $column_label = ! empty( $tax_item['label'] ) ? $tax_item['label'] : __( 'Tax', ATUM_TEXT_DOMAIN ); /* translators: first one is the tax name and second is the tax class name */ $column_tip = sprintf( esc_html__( '%1$s (%2$s)', ATUM_TEXT_DOMAIN ), $tax_item['name'], $tax_class_name ); ?> $item ) : do_action( 'atum/atum_order/before_item_' . $item->get_type() . '_html', $item_id, $item, $atum_order ); include 'item.php'; do_action( 'atum/atum_order/after_item_' . $item->get_type() . '_html', $item_id, $item, $atum_order ); endforeach; do_action( 'atum/atum_order/after_line_items', $atum_order->get_id() ); ?> shipping() ? wc()->shipping->load_shipping_methods() : array(); foreach ( $line_items_shipping as $item_id => $item ) : include 'item-shipping.php'; endforeach; do_action( 'atum/atum_order/after_shipping', $atum_order->get_id() ); ?> $item ) : include 'item-fee.php'; endforeach; do_action( 'atum/atum_order/after_fees', $atum_order->get_id() ); ?>
 
version, '3.5.0', '<' ) || PurchaseOrders::get_post_type() !== $post_type->name ) : // Only allow bulk edit before 3.5.0 VC Version. ?>
get_id() );! ?> get_id() ); ?> get_tax_totals(); if ( ! empty( $tax_totals ) ) : foreach ( $tax_totals as $code => $tax ) : ?> get_id() ); ?> get_id() ); ?>
get_shipping_total(), array( 'currency' => $currency ) ); // WPCS: XSS ok. ?>
label ) ?>: formatted_amount; // WPCS: XSS ok. ?>
: get_formatted_total( '', TRUE ); // WPCS: XSS ok. ?>
labels->singular_name ) ) ?>: get_formatted_total(); // WPCS: XSS ok. ?>

is_editable() ) : ?> labels->singular_name ) ) ) ?>"> labels->singular_name ) ) ); // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText ?> is_editable() ) : ?>