Пример #1
0
    def billing_confirm_refund(cls, account='ADMIN', refund_batch_nos=[], refund_apply_nos=[]):
        """
        退货确认
        :param account:
        :param refund_batch_nos:退货批次号
        :param refund_apply_nos: 退款申请号
        """
        print u'*' * 20 + u'退货确认'
        url = tmsBase.base_url + '/tms/bms/billingRefundConfirmController/sure.do'
        rows = demjson.decode(
            BillingUtil.billing_get_pre_return_confirmed(account=account, refund_batch_nos=refund_batch_nos,
                                                         refund_apply_nos=refund_apply_nos))['rows']

        resp = HttpRequest.post_request(TmsLogin.get_session(account), url, data={'rows': demjson.encode(rows)})

        print resp