Fixed an issue with responsive UI related to setting the customer response.
This commit is contained in:
parent
d30fc77527
commit
d4240e0cc3
2 changed files with 17 additions and 8 deletions
|
|
@ -176,13 +176,14 @@ def manual_response(name, response):
|
|||
new_status = "Estimate Accepted" if accepted else "Lost"
|
||||
|
||||
estimate.custom_response = response
|
||||
estimate.custom_current_status = new_status
|
||||
estimate.status = "Ordered" if accepted else "Closed"
|
||||
# estimate.custom_current_status = new_status
|
||||
# estimate.status = "Ordered" if accepted else "Closed"
|
||||
estimate.flags.ignore_permissions = True
|
||||
print("DEBUG: Updating estimate with response:", response, "and status:", new_status)
|
||||
estimate.save()
|
||||
return build_success_response(estimate.as_dict())
|
||||
except Exception as e:
|
||||
return e
|
||||
return build_error_response(str(e), 500)
|
||||
|
||||
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue