diff --git a/custom_ui/api/db/on_site_meetings.py b/custom_ui/api/db/on_site_meetings.py new file mode 100644 index 0000000..fc6d7fa --- /dev/null +++ b/custom_ui/api/db/on_site_meetings.py @@ -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) + diff --git a/custom_ui/fixtures/doctype.json b/custom_ui/fixtures/doctype.json index ec218e4..2bc4b86 100644 --- a/custom_ui/fixtures/doctype.json +++ b/custom_ui/fixtures/doctype.json @@ -178,8 +178,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:23.661458", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:38.816045", "module": "Custom UI", "name": "Customer Task Link", "naming_rule": "", @@ -396,8 +396,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:23.730085", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:38.886150", "module": "Custom UI", "name": "Address Task Link", "naming_rule": "", @@ -550,8 +550,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:23.799282", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:38.953132", "module": "Custom", "name": "Lead Companies Link", "naming_rule": "", @@ -768,8 +768,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:23.867486", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.023393", "module": "Custom", "name": "Address Project Link", "naming_rule": "", @@ -986,8 +986,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:23.934979", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.093123", "module": "Custom", "name": "Address Quotation Link", "naming_rule": "", @@ -1204,8 +1204,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.001835", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.163081", "module": "Custom", "name": "Address On-Site Meeting Link", "naming_rule": "", @@ -1422,8 +1422,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.069255", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.236784", "module": "Custom", "name": "Address Sales Order Link", "naming_rule": "", @@ -1576,8 +1576,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.137117", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.305461", "module": "Custom", "name": "Contact Address Link", "naming_rule": "", @@ -1730,8 +1730,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.201857", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.376523", "module": "Custom", "name": "Lead On-Site Meeting Link", "naming_rule": "", @@ -2332,8 +2332,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.288443", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.472141", "module": "Selling", "name": "Quotation Template", "naming_rule": "", @@ -2830,8 +2830,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.372116", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.556506", "module": "Selling", "name": "Quotation Template Item", "naming_rule": "", @@ -2984,8 +2984,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.439961", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.624602", "module": "Custom UI", "name": "Customer Company Link", "naming_rule": "", @@ -3138,8 +3138,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.506463", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.690715", "module": "Custom UI", "name": "Customer Address Link", "naming_rule": "", @@ -3292,8 +3292,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.575135", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.758626", "module": "Custom UI", "name": "Customer Contact Link", "naming_rule": "", @@ -3446,8 +3446,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.644548", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.825642", "module": "Custom", "name": "Address Contact Link", "naming_rule": "", @@ -3600,8 +3600,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.712407", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.896330", "module": "Custom", "name": "Customer On-Site Meeting Link", "naming_rule": "", @@ -3754,8 +3754,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.786735", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:39.967073", "module": "Custom", "name": "Customer Project Link", "naming_rule": "", @@ -3908,8 +3908,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.856324", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:40.037175", "module": "Custom", "name": "Customer Quotation Link", "naming_rule": "", @@ -4062,8 +4062,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.924254", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:40.106626", "module": "Custom", "name": "Customer Sales Order Link", "naming_rule": "", @@ -4216,8 +4216,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:24.990458", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:40.174670", "module": "Custom", "name": "Lead Address Link", "naming_rule": "", @@ -4370,8 +4370,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:25.058368", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:40.246628", "module": "Custom", "name": "Lead Contact Link", "naming_rule": "", @@ -4524,8 +4524,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:25.124946", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:40.318639", "module": "Custom", "name": "Lead Quotation Link", "naming_rule": "", @@ -4678,8 +4678,8 @@ "make_attachments_public": 0, "max_attachments": 0, "menu_index": null, - "migration_hash": "5a00edceb2f575ccfc93ed99c01bc0b7", - "modified": "2026-01-22 11:05:25.193024", + "migration_hash": "c40d7d206c7d4601cdb57fde7ab57c12", + "modified": "2026-01-24 11:42:40.390663", "module": "Custom", "name": "Address Company Link", "naming_rule": "",