update fixtures

This commit is contained in:
Casey 2026-02-18 13:46:26 -06:00
parent beb873a9b1
commit 33966decd9
8 changed files with 75 additions and 5335 deletions

View File

@ -1,5 +1,6 @@
[
{
"company": "Sprinklers Northwest",
"docstatus": 0,
"doctype": "Bid Meeting Note Form",
"fields": [

View File

@ -455,63 +455,6 @@
"unique": 0,
"width": null
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 1,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": null,
"depends_on": null,
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Fencing Job Queue",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "workflow_state",
"fieldtype": "Link",
"hidden": 1,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": null,
"is_system_generated": 0,
"is_virtual": 0,
"label": "Workflow State",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-12-11 15:02:40.387286",
"module": null,
"name": "Fencing Job Queue-workflow_state",
"no_copy": 1,
"non_negative": 0,
"options": "Workflow State",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"print_width": null,
"read_only": 0,
"read_only_depends_on": null,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"show_dashboard": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
@ -11912,63 +11855,6 @@
"unique": 0,
"width": null
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": null,
"depends_on": null,
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Fencing Job Queue",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "auto_repeat",
"fieldtype": "Link",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "linked_tasks",
"is_system_generated": 1,
"is_virtual": 0,
"label": "Auto Repeat",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-12-09 17:16:59.566883",
"module": null,
"name": "Fencing Job Queue-auto_repeat",
"no_copy": 1,
"non_negative": 0,
"options": "Auto Repeat",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 1,
"print_hide_if_no_value": 0,
"print_width": null,
"read_only": 1,
"read_only_depends_on": null,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"show_dashboard": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,

File diff suppressed because it is too large Load Diff

View File

@ -1,41 +0,0 @@
[
{
"auto_created": 0,
"companies": [],
"disabled": 0,
"docstatus": 0,
"doctype": "Fiscal Year",
"is_short_year": 0,
"modified": "2026-02-04 12:09:37.726400",
"name": "2026",
"year": "2026",
"year_end_date": "2026-12-31",
"year_start_date": "2026-01-01"
},
{
"auto_created": 0,
"companies": [],
"disabled": 0,
"docstatus": 0,
"doctype": "Fiscal Year",
"is_short_year": 0,
"modified": "2024-04-03 13:53:06.521863",
"name": "2024",
"year": "2024",
"year_end_date": "2024-12-31",
"year_start_date": "2024-01-01"
},
{
"auto_created": 1,
"companies": [],
"disabled": 0,
"docstatus": 0,
"doctype": "Fiscal Year",
"is_short_year": 0,
"modified": "2024-12-28 00:01:04.314401",
"name": "2025",
"year": "2025",
"year_end_date": "2025-12-31",
"year_start_date": "2025-01-01"
}
]

View File

@ -4175,102 +4175,6 @@
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "address",
"is_system_generated": 1,
"modified": "2024-12-20 17:34:15.411589",
"module": null,
"name": "Fencing Job Queue-address-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "customer_name",
"is_system_generated": 1,
"modified": "2024-12-20 17:34:15.456255",
"module": null,
"name": "Fencing Job Queue-customer_name-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "job_status",
"is_system_generated": 1,
"modified": "2024-12-20 17:34:15.488408",
"module": null,
"name": "Fencing Job Queue-job_status-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "queue_num",
"is_system_generated": 1,
"modified": "2024-12-16 08:48:26.869383",
"module": null,
"name": "Fencing Job Queue-queue_num-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "0"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "priority",
"is_system_generated": 1,
"modified": "2024-12-16 09:03:04.571236",
"module": null,
"name": "Fencing Job Queue-priority-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "0"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "project_details",
"is_system_generated": 1,
"modified": "2024-12-16 14:01:04.432908",
"module": null,
"name": "Fencing Job Queue-project_details-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "0"
},
{
"default_value": null,
"doc_type": "Address",
@ -5983,54 +5887,6 @@
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "scheduled_to_install_posts",
"is_system_generated": 1,
"modified": "2024-12-18 14:29:11.113199",
"module": null,
"name": "Fencing Job Queue-scheduled_to_install_posts-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "0"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "workflow_state",
"is_system_generated": 1,
"modified": "2024-12-16 14:01:04.414656",
"module": null,
"name": "Fencing Job Queue-workflow_state-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "0"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "dig_ticket",
"is_system_generated": 1,
"modified": "2024-12-20 17:34:15.474733",
"module": null,
"name": "Fencing Job Queue-dig_ticket-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Custom Field",
@ -6079,70 +5935,6 @@
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "finish_crew",
"is_system_generated": 1,
"modified": "2024-12-17 10:03:08.371619",
"module": null,
"name": "Fencing Job Queue-finish_crew-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "scheduled_to_install_finish_material",
"is_system_generated": 1,
"modified": "2024-12-18 14:29:11.139869",
"module": null,
"name": "Fencing Job Queue-scheduled_to_install_finish_material-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "0"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "dig_and_set_crew",
"is_system_generated": 1,
"modified": "2024-12-17 10:03:08.343321",
"module": null,
"name": "Fencing Job Queue-dig_and_set_crew-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "est_time",
"is_system_generated": 1,
"modified": "2024-12-18 14:29:11.159342",
"module": null,
"name": "Fencing Job Queue-est_time-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "0"
},
{
"default_value": null,
"doc_type": "Locate Log",
@ -7135,70 +6927,6 @@
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "crew_assignment_2",
"is_system_generated": 1,
"modified": "2024-12-20 17:34:15.427767",
"module": null,
"name": "Fencing Job Queue-crew_assignment_2-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "crew_assignment_3",
"is_system_generated": 1,
"modified": "2024-12-20 17:34:15.442270",
"module": null,
"name": "Fencing Job Queue-crew_assignment_3-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "crew_assignment",
"is_system_generated": 1,
"modified": "2024-12-18 14:29:11.283033",
"module": null,
"name": "Fencing Job Queue-crew_assignment-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "linked_project",
"is_system_generated": 1,
"modified": "2024-12-20 17:34:15.503345",
"module": null,
"name": "Fencing Job Queue-linked_project-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Address",
@ -7407,22 +7135,6 @@
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Fencing Job Queue",
"docstatus": 0,
"doctype": "Property Setter",
"doctype_or_field": "DocField",
"field_name": "total",
"is_system_generated": 1,
"modified": "2024-12-20 17:34:15.512919",
"module": null,
"name": "Fencing Job Queue-total-in_list_view",
"property": "in_list_view",
"property_type": "Check",
"row_name": null,
"value": "1"
},
{
"default_value": null,
"doc_type": "Contact",

View File

@ -56,25 +56,6 @@
"script": "\r\n\r\n\r\n# Helper function to calculate the legal start date (2 business days after the locate date)\r\ndef calculate_legal_start_date(locate_date):\r\n # Add 2 business days to the locate date (exclude weekends)\r\n current_date = getdate(locate_date)\r\n while True:\r\n current_date = add_days(current_date, 1)\r\n if current_date.weekday() < 5: # Weekdays are 0-4 (Monday to Friday)\r\n if current_date.weekday() == 4: # If it's Friday, skip to Monday\r\n current_date = add_days(current_date, 2)\r\n break\r\n return current_date\r\n\r\n# Helper function to calculate the expiration date based on the state\r\ndef calculate_expiration_date(state, locate_date):\r\n expiration_days = 45 if state == 'Washington' else 28\r\n expiration_date = add_days(locate_date, expiration_days)\r\n return expiration_date\r\n \r\n \r\n\r\n # Calculate the legal start date and expiration date\r\n legal_start_date = calculate_legal_start_date(locate_date)\r\n expiration_date = calculate_expiration_date(state, locate_date)\r\n\r\n ",
"script_type": "DocType Event"
},
{
"allow_guest": 0,
"api_method": null,
"cron_format": null,
"disabled": 1,
"docstatus": 0,
"doctype": "Server Script",
"doctype_event": "Before Save",
"enable_rate_limit": 0,
"event_frequency": "All",
"modified": "2024-12-18 11:41:19.792616",
"module": "ERPNext Integrations",
"name": "Automate Job queue creation",
"rate_limit_count": 5,
"rate_limit_seconds": 86400,
"reference_doctype": "Sales Order",
"script": "# Trigger: Before Save\r\nif doc.company == \"Lowe Fencing\":\r\n # Check if a Fencing Job Queue entry already exists for this Sales Order\r\n existing_job = frappe.db.exists(\"Fencing Job Queue\", {\"sales_order\": doc.name})\r\n \r\n if not existing_job:\r\n # Create a new Fencing Job Queue entry\r\n new_job = frappe.get_doc({\r\n \"doctype\": \"Fencing Job Queue\",\r\n \"sales_order\": doc.name,\r\n \"customer\": doc.customer,\r\n \"job_description\": doc.get(\"job_description\", \"No description provided\"), # Modify if necessary\r\n \"status\": \"Pending\"\r\n })\r\n new_job.insert()\r\n frappe.msgprint(f\"Fencing Job Queue entry created for Sales Order {doc.name}.\")\r\n",
"script_type": "DocType Event"
},
{
"allow_guest": 0,
"api_method": null,

View File

@ -1,194 +0,0 @@
[
{
"account": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"company": "Sprinklers Northwest",
"default_in_transit_warehouse": null,
"disabled": 0,
"docstatus": 0,
"doctype": "Warehouse",
"email_id": null,
"is_group": 0,
"is_rejected_warehouse": 0,
"mobile_no": null,
"modified": "2025-01-21 12:05:13.944900",
"name": "Nursery - S",
"old_parent": "All Warehouses - S",
"parent_warehouse": "All Warehouses - S",
"phone_no": null,
"pin": null,
"state": null,
"warehouse_name": "Nursery",
"warehouse_type": null
},
{
"account": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"company": "Sprinklers Northwest",
"default_in_transit_warehouse": null,
"disabled": 0,
"docstatus": 0,
"doctype": "Warehouse",
"email_id": null,
"is_group": 0,
"is_rejected_warehouse": 0,
"mobile_no": null,
"modified": "2025-01-31 10:23:24.774635",
"name": "Services Stock - S",
"old_parent": "",
"parent_warehouse": null,
"phone_no": null,
"pin": null,
"state": null,
"warehouse_name": "Services Stock",
"warehouse_type": null
},
{
"account": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"company": "Lowe Fencing",
"default_in_transit_warehouse": null,
"disabled": 0,
"docstatus": 0,
"doctype": "Warehouse",
"email_id": null,
"is_group": 0,
"is_rejected_warehouse": 0,
"mobile_no": null,
"modified": "2024-10-31 14:40:21.144485",
"name": "Fencing Yard - LF",
"old_parent": "",
"parent_warehouse": null,
"phone_no": null,
"pin": null,
"state": null,
"warehouse_name": "Fencing Yard",
"warehouse_type": null
},
{
"account": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"company": "Sprinklers Northwest",
"default_in_transit_warehouse": null,
"disabled": 0,
"docstatus": 0,
"doctype": "Warehouse",
"email_id": null,
"is_group": 0,
"is_rejected_warehouse": 0,
"mobile_no": null,
"modified": "2025-01-31 10:14:33.005891",
"name": "Completed Ready to Bill - S",
"old_parent": "All Warehouses - S",
"parent_warehouse": "All Warehouses - S",
"phone_no": null,
"pin": null,
"state": null,
"warehouse_name": "Completed Ready to Bill",
"warehouse_type": null
},
{
"account": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"company": "Sprinklers Northwest",
"default_in_transit_warehouse": null,
"disabled": 0,
"docstatus": 0,
"doctype": "Warehouse",
"email_id": null,
"is_group": 1,
"is_rejected_warehouse": 0,
"mobile_no": null,
"modified": "2024-04-03 13:53:07.446449",
"name": "All Warehouses - S",
"old_parent": "",
"parent_warehouse": "",
"phone_no": null,
"pin": null,
"state": null,
"warehouse_name": "All Warehouses",
"warehouse_type": null
},
{
"account": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"company": "Sprinklers Northwest",
"default_in_transit_warehouse": null,
"disabled": 0,
"docstatus": 0,
"doctype": "Warehouse",
"email_id": null,
"is_group": 0,
"is_rejected_warehouse": 0,
"mobile_no": null,
"modified": "2025-01-31 09:54:31.268684",
"name": "Field Work - S",
"old_parent": "All Warehouses - S",
"parent_warehouse": "All Warehouses - S",
"phone_no": null,
"pin": null,
"state": null,
"warehouse_name": "Field Work",
"warehouse_type": null
},
{
"account": "Stock In Hand - S",
"address_line_1": null,
"address_line_2": null,
"city": null,
"company": "Sprinklers Northwest",
"default_in_transit_warehouse": null,
"disabled": 0,
"docstatus": 0,
"doctype": "Warehouse",
"email_id": null,
"is_group": 0,
"is_rejected_warehouse": 0,
"mobile_no": null,
"modified": "2024-10-31 16:10:30.017682",
"name": "Parts Shed - S",
"old_parent": "All Warehouses - S",
"parent_warehouse": "All Warehouses - S",
"phone_no": null,
"pin": null,
"state": null,
"warehouse_name": "Parts Shed ",
"warehouse_type": null
},
{
"account": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"company": "Sprinklers Northwest",
"default_in_transit_warehouse": null,
"disabled": 0,
"docstatus": 0,
"doctype": "Warehouse",
"email_id": null,
"is_group": 1,
"is_rejected_warehouse": 0,
"mobile_no": null,
"modified": "2025-01-21 12:06:12.188216",
"name": "Stores - S",
"old_parent": "",
"parent_warehouse": "",
"phone_no": null,
"pin": null,
"state": null,
"warehouse_name": "Vendor",
"warehouse_type": null
}
]

View File

@ -216,11 +216,11 @@ doc_events = {
}
fixtures = [
{"dt": "Company"},
# {"dt": "Company"},
# {"dt": "Account"},
# {"dt": "Cost Center"},
{"dt": "Warehouse"},
{"dt": "Fiscal Year"},
# {"dt": "Warehouse"},
# {"dt": "Fiscal Year"},
{
"dt": "Email Template",
"filters": [
@ -230,8 +230,13 @@ fixtures = [
{
"dt": "DocType",
"filters": [
["custom", "=", 1]
]
["custom", "=", 1],
["name", "!=", "Fencing Job Queue"],
["name", "!=", "Locate Log"], # <-- skip the deleted/removed doctype
],
"postprocess": lambda doc: doc.update(
{"links": [l for l in doc.get("links", []) if l.get("link_doctype") != "Fencing Job Queue"]}
)
},
{ "dt": "Task Type" },
{