Commit b51db2ca by Solo Group

auto-push

1 parent a68272cf
......@@ -196,6 +196,13 @@ def proses_odeo(data):
order.notify = dict(post=data)
if "sn" in data and data["sn"]:
order.serial_number = data["sn"]
else:
message = 'message' in data and data["message"] or ""
if message:
loc = message.find("SN: ")
sn = message[loc+4:loc+28]
order.serial_number=sn
flush_row(order)
# todo: add to customer notify table
# todo: create cron for notify
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!