fix discount bug for order.caculate_cost