|
|
|
@ -525,7 +525,7 @@ class DemoYandexAvisoView(APIView): |
|
|
|
data[key] = val |
|
|
|
data[key] = val |
|
|
|
|
|
|
|
|
|
|
|
now = timezone.now() |
|
|
|
now = timezone.now() |
|
|
|
if data['orderSumAmount'] < 1001: |
|
|
|
if float(data['orderSumAmount']) < 1001: |
|
|
|
xml_res = """<checkOrderResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s"/> |
|
|
|
xml_res = """<checkOrderResponse performedDatetime="%s" code="0" invoiceId="%s" shopId="%s"/> |
|
|
|
""" % (now.isoformat(), str(data['invoiceId']), str(data['shopId'])) |
|
|
|
""" % (now.isoformat(), str(data['invoiceId']), str(data['shopId'])) |
|
|
|
else: |
|
|
|
else: |
|
|
|
|