Merge pull request #5538 from kilbot/master

Update class-wc-api-orders.php
This commit is contained in:
Mike Jolley 2014-05-22 10:16:57 +01:00
commit 5a0d17d774
1 changed files with 11 additions and 10 deletions

View File

@ -178,6 +178,7 @@ class WC_API_Orders extends WC_API_Resource {
$order_data['line_items'][] = array(
'id' => $item_id,
'subtotal' => wc_format_decimal( $order->get_line_subtotal( $item ), 2 ),
'subtotal_tax' => wc_format_decimal( $item['line_subtotal_tax'], 2 ),
'total' => wc_format_decimal( $order->get_line_total( $item ), 2 ),
'total_tax' => wc_format_decimal( $order->get_line_tax( $item ), 2 ),
'price' => wc_format_decimal( $order->get_item_total( $item ), 2 ),