Added an API call for on site meetings for a dial.
This commit is contained in:
parent
00f6d69482
commit
fbc51301f3
2 changed files with 61 additions and 46 deletions
15
custom_ui/api/db/on_site_meetings.py
Normal file
15
custom_ui/api/db/on_site_meetings.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import frappe
|
||||
from custom_ui.db_utils import build_success_response, build_error_response
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_incomplete_bids(company):
|
||||
print("Getting Incomplete Bids")
|
||||
try:
|
||||
filters = {'status': "Unscheduled", 'company': company}
|
||||
count = frappe.db.count("On-Site Meeting", filters=filters)
|
||||
print("Incomplete Bids:", count)
|
||||
return build_success_response([count])
|
||||
except Exception as e:
|
||||
return build_error_response(str(e), 500)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue