Beispiel #1
0
def update_status(doc,sid,status):
	doc = json.loads(doc)
	data = {}
	data["user_id"] = frappe.db.get_value("User",{"name":frappe.session.user},"user_id")
	data["sid"] = sid
	data["property_status"] = status
	data["property_id"] = doc["property_id"]
	data["fields"] = ["status"]
	data = json.dumps(data)
	doc_rec = api.update_property_status(data)
	status = api.get_property_details(data)
	return doc_rec,status["data"]["status"]
def update_status(doc, sid, status):
    doc = json.loads(doc)
    data = {}
    data["user_id"] = frappe.db.get_value("User",
                                          {"name": frappe.session.user},
                                          "user_id")
    data["sid"] = sid
    data["property_status"] = status
    data["property_id"] = doc["property_id"]
    data["fields"] = ["status"]
    data = json.dumps(data)
    doc_rec = api.update_property_status(data)
    status = update_api.get_property_details(data)
    return doc_rec, status["data"]["status"]
Beispiel #3
0
def update_property_status(data):
    return api.update_property_status(data)
Beispiel #4
0
def update_property_status(data):
	return api.update_property_status(data)