diff --git a/custom_ui/custom_ui/doctype/service_address_2/service_address_2.json b/custom_ui/custom_ui/doctype/service_address_2/service_address_2.json index fd065d3..436e2b0 100644 --- a/custom_ui/custom_ui/doctype/service_address_2/service_address_2.json +++ b/custom_ui/custom_ui/doctype/service_address_2/service_address_2.json @@ -1,7 +1,7 @@ { "actions": [], "allow_rename": 1, - "creation": "2026-02-09 03:55:26.299198", + "creation": "2026-01-30 07:01:57.571003", "doctype": "DocType", "engine": "InnoDB", "field_order": [ @@ -19,8 +19,7 @@ "customer", "company", "service_address", - "foreman", - "ready_to_schedule" + "foreman" ], "fields": [ { @@ -114,18 +113,12 @@ "fieldtype": "Link", "label": "Foreman", "options": "Employee" - }, - { - "default": "1", - "fieldname": "ready_to_schedule", - "fieldtype": "Check", - "label": "Ready To Schedule" } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2026-02-10 07:36:48.544719", + "modified": "2026-01-30 07:15:39.410145", "modified_by": "Administrator", "module": "Custom UI", "name": "Service Address 2", diff --git a/custom_ui/fixtures/item_group.json b/custom_ui/fixtures/item_group.json deleted file mode 100644 index 8ec03ff..0000000 --- a/custom_ui/fixtures/item_group.json +++ /dev/null @@ -1,876 +0,0 @@ -[ - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Sales Other - S", - "parent": "Veritas", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Veritas", - "modified": "2025-02-12 11:54:41.168024", - "name": "Veritas", - "old_parent": "Products", - "parent_item_group": "Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "MFD Paver", - "modified": "2024-12-10 13:31:01.954471", - "name": "MFD Paver", - "old_parent": "Veritas", - "parent_item_group": "Veritas", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "MFD Wall Block", - "modified": "2024-12-10 13:31:14.632861", - "name": "MFD Wall Block", - "old_parent": "Veritas", - "parent_item_group": "Veritas", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Natural Stone", - "modified": "2024-12-10 13:31:29.566268", - "name": "Natural Stone", - "old_parent": "Veritas", - "parent_item_group": "Veritas", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Sand", - "modified": "2024-12-10 13:33:10.335521", - "name": "Sand", - "old_parent": "Daniels-LS", - "parent_item_group": "Daniels-LS", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Mulch", - "modified": "2024-12-10 13:32:06.739902", - "name": "Mulch", - "old_parent": "Daniels-LS", - "parent_item_group": "Daniels-LS", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Landscaping/Install - S", - "parent": "Annuals", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Annuals", - "modified": "2025-02-12 11:53:46.263093", - "name": "Annuals", - "old_parent": "Plants", - "parent_item_group": "Plants", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Hardware", - "modified": "2024-12-19 09:33:23.045521", - "name": "Hardware", - "old_parent": "Lowe Fencing-Products", - "parent_item_group": "Lowe Fencing-Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Decorative iron", - "modified": "2024-12-19 09:34:13.990985", - "name": "Decorative iron", - "old_parent": "Lowe Fencing-Products", - "parent_item_group": "Lowe Fencing-Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "S1 Hardscaping", - "modified": "2025-01-08 10:32:13.817300", - "name": "S1 Hardscaping", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Sales Other - S", - "parent": "Hardscaping", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Hardscaping", - "modified": "2025-02-12 11:50:38.148961", - "name": "Hardscaping", - "old_parent": "SNW-I", - "parent_item_group": "SNW-I", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Vinyl", - "modified": "2024-12-19 09:33:30.400587", - "name": "Vinyl", - "old_parent": "Lowe Fencing-Products", - "parent_item_group": "Lowe Fencing-Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Tools", - "modified": "2024-12-19 09:34:52.369957", - "name": "Tools", - "old_parent": "Lowe Fencing-Products", - "parent_item_group": "Lowe Fencing-Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Hinges & Latches", - "modified": "2024-12-19 09:48:02.040604", - "name": "Hinges & Latches", - "old_parent": "Lowe Fencing-Products", - "parent_item_group": "Lowe Fencing-Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Landscaping/Install - S", - "parent": "Plants", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Plants", - "modified": "2025-02-12 11:50:54.913128", - "name": "Plants", - "old_parent": "SNW-LS", - "parent_item_group": "SNW-LS", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Wood", - "modified": "2024-12-19 09:33:58.958927", - "name": "Wood", - "old_parent": "Lowe Fencing-Products", - "parent_item_group": "Lowe Fencing-Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Lawn Care", - "modified": "2025-01-08 10:15:52.916335", - "name": "Lawn Care", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Edging", - "modified": "2025-01-08 10:16:02.102771", - "name": "Edging", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Weed Barrier", - "modified": "2025-01-08 10:23:51.336816", - "name": "Weed Barrier", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [], - "item_group_name": "Daniels", - "modified": "2024-12-09 08:14:20.764630", - "name": "Daniels", - "old_parent": "Service", - "parent_item_group": "Service", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Trees", - "modified": "2024-12-09 12:46:38.588638", - "name": "Trees", - "old_parent": "Plants", - "parent_item_group": "Plants", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Valves", - "modified": "2025-01-08 10:14:55.780026", - "name": "Valves", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Landscaping/Install - S", - "parent": "SNW-I", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "SNW-I", - "modified": "2025-02-12 11:44:16.372649", - "name": "SNW-I", - "old_parent": "Service", - "parent_item_group": "Service", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Landscaping/Install - S", - "parent": "Daniels-LS", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Daniels-LS", - "modified": "2025-02-12 11:49:59.044728", - "name": "Daniels-LS", - "old_parent": "Products", - "parent_item_group": "Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "HS Misc. Parts", - "modified": "2024-12-10 13:30:48.295063", - "name": "HS Misc. Parts", - "old_parent": "Veritas", - "parent_item_group": "Veritas", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Perennials", - "modified": "2024-12-09 12:47:04.488761", - "name": "Perennials", - "old_parent": "Plants", - "parent_item_group": "Plants", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Chain Link", - "modified": "2024-12-19 09:33:46.702657", - "name": "Chain Link", - "old_parent": "Lowe Fencing-Products", - "parent_item_group": "Lowe Fencing-Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [], - "item_group_name": "SNW-LS", - "modified": "2024-12-09 08:17:16.588537", - "name": "SNW-LS", - "old_parent": "Products", - "parent_item_group": "Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Shrubs", - "modified": "2024-12-09 12:47:57.702491", - "name": "Shrubs", - "old_parent": "Plants", - "parent_item_group": "Plants", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [], - "item_group_name": "Service", - "modified": "2024-12-09 08:13:11.899625", - "name": "Service", - "old_parent": "", - "parent_item_group": null, - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [], - "item_group_name": "Nuco-Services", - "modified": "2024-12-09 08:13:55.183241", - "name": "Nuco-Services", - "old_parent": "Service", - "parent_item_group": "Service", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [], - "item_group_name": "Products", - "modified": "2024-12-09 08:15:23.663759", - "name": "Products", - "old_parent": "", - "parent_item_group": null, - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Electric", - "modified": "2025-01-08 10:14:42.715504", - "name": "Electric", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Boxes", - "modified": "2025-01-08 10:16:38.533410", - "name": "Boxes", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Lowe Fencing", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Fencing Yard - LF", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Fencing Sales - LF", - "parent": "Lowe Fencing-Services", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Lowe Fencing-Services", - "modified": "2025-02-12 11:48:29.551145", - "name": "Lowe Fencing-Services", - "old_parent": "Service", - "parent_item_group": "Service", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Heads", - "modified": "2025-01-08 10:16:44.690210", - "name": "Heads", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Trucking", - "modified": "2024-12-10 13:34:40.527461", - "name": "Trucking", - "old_parent": "Daniels", - "parent_item_group": "Daniels", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Nipples", - "modified": "2025-01-08 10:16:58.229281", - "name": "Nipples", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Dec Rock", - "modified": "2024-12-10 13:31:55.184593", - "name": "Dec Rock", - "old_parent": "Daniels-LS", - "parent_item_group": "Daniels-LS", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Pipes", - "modified": "2025-01-08 10:14:18.873703", - "name": "Pipes", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Landscaping/Install - S", - "parent": "Misc SiteOne Items", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Misc SiteOne Items", - "modified": "2025-02-12 11:53:26.232589", - "name": "Misc SiteOne Items", - "old_parent": "SNW-LS", - "parent_item_group": "SNW-LS", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Nozzles", - "modified": "2025-01-08 10:17:08.089325", - "name": "Nozzles", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Excavation - S", - "parent": "Excavation", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Excavation", - "modified": "2025-02-12 11:47:06.895725", - "name": "Excavation", - "old_parent": "SNW-I", - "parent_item_group": "SNW-I", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Backflow", - "modified": "2025-01-08 10:21:59.244062", - "name": "Backflow", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Lowe Fencing", - "default_discount_account": null, - "default_price_list": "Standard Selling", - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Fencing Yard - LF", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Fencing Sales - LF", - "parent": "Lowe Fencing-Products", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "Lowe Fencing-Products", - "modified": "2025-02-12 11:43:12.145116", - "name": "Lowe Fencing-Products", - "old_parent": "Products", - "parent_item_group": "Products", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Misc Tools", - "modified": "2025-01-08 09:24:03.139209", - "name": "Misc Tools", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Timers", - "modified": "2025-01-08 10:15:03.616973", - "name": "Timers", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Irrigation", - "modified": "2024-12-11 11:20:02.429616", - "name": "Irrigation", - "old_parent": "SNW-I", - "parent_item_group": "SNW-I", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Soils", - "modified": "2024-12-10 13:33:23.092524", - "name": "Soils", - "old_parent": "Daniels-LS", - "parent_item_group": "Daniels-LS", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Landscaping", - "modified": "2024-12-11 11:20:28.503214", - "name": "Landscaping", - "old_parent": "SNW-I", - "parent_item_group": "SNW-I", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 0, - "item_group_defaults": [], - "item_group_name": "Irrigation Misc", - "modified": "2025-01-08 10:16:29.725012", - "name": "Irrigation Misc", - "old_parent": "Misc SiteOne Items", - "parent_item_group": "Misc SiteOne Items", - "taxes": [] - }, - { - "docstatus": 0, - "doctype": "Item Group", - "image": null, - "is_group": 1, - "item_group_defaults": [ - { - "buying_cost_center": null, - "company": "Sprinklers Northwest", - "default_discount_account": null, - "default_price_list": null, - "default_provisional_account": null, - "default_supplier": null, - "default_warehouse": "Stores - S", - "deferred_expense_account": null, - "deferred_revenue_account": null, - "expense_account": null, - "income_account": "Technician Service - S", - "parent": "SNW-S", - "parentfield": "item_group_defaults", - "parenttype": "Item Group", - "selling_cost_center": null - } - ], - "item_group_name": "SNW-S", - "modified": "2025-02-12 11:45:16.400080", - "name": "SNW-S", - "old_parent": "Service", - "parent_item_group": "Service", - "taxes": [] - } -] \ No newline at end of file diff --git a/custom_ui/fixtures/project_template.json b/custom_ui/fixtures/project_template.json index c0fc39b..2c67ddc 100644 --- a/custom_ui/fixtures/project_template.json +++ b/custom_ui/fixtures/project_template.json @@ -53,5 +53,25 @@ "task": "TASK-2025-00006" } ] + }, + { + "bid_meeting_note_form": null, + "calendar_color": null, + "company": "Sprinklers Northwest", + "docstatus": 0, + "doctype": "Project Template", + "item_groups": null, + "modified": "2026-01-08 10:36:39.245470", + "name": "Other", + "project_type": null, + "tasks": [ + { + "parent": "Other", + "parentfield": "tasks", + "parenttype": "Project Template", + "subject": "Primary Job", + "task": "TASK-2025-00004" + } + ] } ] \ No newline at end of file diff --git a/custom_ui/hooks.py b/custom_ui/hooks.py index ec974dd..14a24dc 100644 --- a/custom_ui/hooks.py +++ b/custom_ui/hooks.py @@ -235,7 +235,6 @@ fixtures = [ {"dt": "Property Setter"}, {"dt": "Client Script"}, {"dt": "Server Script"}, - {"dt": "Item Group"} ] diff --git a/custom_ui/install.py b/custom_ui/install.py index df8a186..779b7aa 100644 --- a/custom_ui/install.py +++ b/custom_ui/install.py @@ -811,17 +811,10 @@ def create_bid_meeting_note_form_templates(): for company, form_list in forms.items(): for form in form_list: # Idempotency check - bid_meeting_filter = {"title": form["title"], "company": company} - # Get the id of the Bid Meeting Note Form if it exists - bid_meeting_notes_id = frappe.db.exists("Bid Meeting Note Form", bid_meeting_filter) - if bid_meeting_notes_id: - # Check if the project template is connected to this Bid Meetings Note Form - template_connection = frappe.db.get_value("Project Template", - form["project_template"], "bid_meeting_note_form") - if not template_connection: - # Connect the Bid Meeting Note Form and Project Template - frappe.db.set_value("Project Template", form["project_template"], - "bid_meeting_note_form", bid_meeting_notes_id) + if frappe.db.exists( + "Bid Meeting Note Form", + {"title": form["title"], "company": company}, + ): continue doc = frappe.new_doc("Bid Meeting Note Form") @@ -854,8 +847,6 @@ def create_bid_meeting_note_form_templates(): ) doc.insert(ignore_permissions=True) - frappe.db.set_value("Project Template", form["project_template"], - "bid_meeting_note_form", doc.name) def create_companies():