def setnewitem_byreturnswappro(ecode, sku, lineno, amt_receivableb,
    amt_receivablea, pcond_id, groupnum, ga_dis, pa_dis, times, products):
    """
    设置返回计算后的换购商品明细的一行信息
    :param ecode: 商品（款号）
    :param sku: 条码
    :param lineno: 行号
    :param amt_receivableb:应收价
    :param amt_receivablea:应收价
    :param pcond_id: 促销优惠明细ID
    :param groupnum:标记翻倍的倍数分组
    :param ga_dis:执行的商品促销ID集合
    :param pa_dis:执行的全场促销ID集合
    :param times:
    :param products:返回的列表
    :return:
    """
    purproduct = {}
    purproduct['ecode'] = ecode
    purproduct['sku'] = sku
    purproduct['lineno'] = lineno
    purproduct['amt_receivableb'] = amt_receivableb
    purproduct['amt_receivablea'] = amt_receivablea
    purproduct['qtty'] = 1
    purproduct['pcond_id'] = pcond_id
    purproduct['groupnum'] = groupnum
    purproduct['ga_dis'] = ga_dis
    purproduct['pa_dis'] = pa_dis
    if times is not None:
        purproduct['times'] = times
    products.append(purproduct)
