@@ 970-972 (lines=3) @@ | ||
967 | } |
|
968 | ||
969 | // total |
|
970 | if ( isset( $item['total'] ) ) { |
|
971 | $item_args['totals']['total'] = floatval( $item['total'] ); |
|
972 | } |
|
973 | ||
974 | // total tax |
|
975 | if ( isset( $item['total_tax'] ) ) { |
|
@@ 975-977 (lines=3) @@ | ||
972 | } |
|
973 | ||
974 | // total tax |
|
975 | if ( isset( $item['total_tax'] ) ) { |
|
976 | $item_args['totals']['tax'] = floatval( $item['total_tax'] ); |
|
977 | } |
|
978 | ||
979 | // subtotal |
|
980 | if ( isset( $item['subtotal'] ) ) { |
|
@@ 980-982 (lines=3) @@ | ||
977 | } |
|
978 | ||
979 | // subtotal |
|
980 | if ( isset( $item['subtotal'] ) ) { |
|
981 | $item_args['totals']['subtotal'] = floatval( $item['subtotal'] ); |
|
982 | } |
|
983 | ||
984 | // subtotal tax |
|
985 | if ( isset( $item['subtotal_tax'] ) ) { |
|
@@ 985-987 (lines=3) @@ | ||
982 | } |
|
983 | ||
984 | // subtotal tax |
|
985 | if ( isset( $item['subtotal_tax'] ) ) { |
|
986 | $item_args['totals']['subtotal_tax'] = floatval( $item['subtotal_tax'] ); |
|
987 | } |
|
988 | ||
989 | $item_args = apply_filters( 'woocommerce_cli_order_line_item_args', $item_args, $item, $order, $action ); |
|
990 |