total, review = 0, []
for row in output['orders']:
    if row['needs_review']:
        review.append(row['index'])
    elif row['sku'] == 'C1':
        total += row['quantity'] * (6 if row['unit'] in ['箱', 'box'] else 1)
check('确定订单按箱件换算得到15件', total == 15)
check('含糊的杯子订单进入复核', review == [2])
result = {'confirmed_units': total, 'review_orders': review, 'parsed': output['orders']}
