woothemes/woocommerce — pull request #6552 by Aaron3 (2014-10-16 10:56:31+00:00)
Title: Fixed API create_order to allow setting line totals.

$order->add_product expects totals without the `line_` prefix. See https://github.com/woothemes/woocommerce/blob/master/includes/abstracts/abstract-wc-order.php#L149

Without this, setting product coupons doesn't work correctly. (The coupon is saved to the order but no discounts are added to the product.)