From 0bacb2046a44816d7ef0d155b9cc0acc355d9d00 Mon Sep 17 00:00:00 2001 From: rocketdebris Date: Tue, 10 Feb 2026 19:21:49 -0500 Subject: [PATCH] Added missing customer groups to fixtures. --- custom_ui/fixtures/customer_group.json | 251 +++++++++++++++++++++++++ custom_ui/hooks.py | 1 + 2 files changed, 252 insertions(+) create mode 100644 custom_ui/fixtures/customer_group.json diff --git a/custom_ui/fixtures/customer_group.json b/custom_ui/fixtures/customer_group.json new file mode 100644 index 0000000..643ec2c --- /dev/null +++ b/custom_ui/fixtures/customer_group.json @@ -0,0 +1,251 @@ +[ + { + "accounts": [], + "credit_limits": [], + "customer_group_name": "All Customer Groups", + "default_price_list": null, + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 1, + "modified": "2024-04-03 13:52:56.001588", + "name": "All Customer Groups", + "old_parent": "", + "parent_customer_group": null, + "payment_terms": null + }, + { + "accounts": [], + "credit_limits": [], + "customer_group_name": "Non Profit", + "default_price_list": null, + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2024-04-03 13:52:56.071669", + "name": "Non Profit", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": null + }, + { + "accounts": [], + "credit_limits": [], + "customer_group_name": "Government", + "default_price_list": null, + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2024-04-03 13:52:56.106475", + "name": "Government", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": null + }, + { + "accounts": [ + { + "account": "Debtors - NYC", + "advance_account": null, + "company": "Nuco Yard Care", + "parent": "Residential - Lawn Care", + "parentfield": "accounts", + "parenttype": "Customer Group" + } + ], + "credit_limits": [], + "customer_group_name": "Residential - Lawn Care", + "default_price_list": "Standard Selling", + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2025-01-30 14:09:03.788424", + "name": "Residential - Lawn Care", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": "Due on receipt" + }, + { + "accounts": [ + { + "account": "Debtors - NYC", + "advance_account": null, + "company": "Nuco Yard Care", + "parent": "Commercial - Lawn Care", + "parentfield": "accounts", + "parenttype": "Customer Group" + } + ], + "credit_limits": [], + "customer_group_name": "Commercial - Lawn Care", + "default_price_list": "Commerical Installation", + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2025-01-30 14:09:56.564106", + "name": "Commercial - Lawn Care", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": "Net 10th" + }, + { + "accounts": [], + "credit_limits": [], + "customer_group_name": "HOA", + "default_price_list": null, + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2024-12-13 11:06:00.939794", + "name": "HOA", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": null + }, + { + "accounts": [ + { + "account": "Debtors - S", + "advance_account": null, + "company": "Sprinklers Northwest", + "parent": "Residential - Installation", + "parentfield": "accounts", + "parenttype": "Customer Group" + }, + { + "account": "Debtors - LF", + "advance_account": null, + "company": "Lowe Fencing", + "parent": "Residential - Installation", + "parentfield": "accounts", + "parenttype": "Customer Group" + } + ], + "credit_limits": [], + "customer_group_name": "Residential - Installation", + "default_price_list": "Residential", + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2025-01-30 14:07:58.523303", + "name": "Residential - Installation", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": "Half Down" + }, + { + "accounts": [ + { + "account": "Debtors - S", + "advance_account": null, + "company": "Sprinklers Northwest", + "parent": "Builder", + "parentfield": "accounts", + "parenttype": "Customer Group" + } + ], + "credit_limits": [], + "customer_group_name": "Builder", + "default_price_list": "Standard Selling", + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2024-12-19 12:23:59.682344", + "name": "Builder", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": "" + }, + { + "accounts": [ + { + "account": "Debtors - S", + "advance_account": null, + "company": "Sprinklers Northwest", + "parent": "Commercial - Irrigation service", + "parentfield": "accounts", + "parenttype": "Customer Group" + }, + { + "account": "Debtors - NYC", + "advance_account": null, + "company": "Nuco Yard Care", + "parent": "Commercial - Irrigation service", + "parentfield": "accounts", + "parenttype": "Customer Group" + }, + { + "account": "Debtors - LF", + "advance_account": null, + "company": "Lowe Fencing", + "parent": "Commercial - Irrigation service", + "parentfield": "accounts", + "parenttype": "Customer Group" + } + ], + "credit_limits": [], + "customer_group_name": "Commercial - Irrigation service", + "default_price_list": "Standard Selling", + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2025-01-30 14:05:52.955168", + "name": "Commercial - Irrigation service", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": "Due on receipt" + }, + { + "accounts": [ + { + "account": "Debtors - S", + "advance_account": null, + "company": "Sprinklers Northwest", + "parent": "Commercial - Installation", + "parentfield": "accounts", + "parenttype": "Customer Group" + }, + { + "account": "Debtors - LF", + "advance_account": null, + "company": "Lowe Fencing", + "parent": "Commercial - Installation", + "parentfield": "accounts", + "parenttype": "Customer Group" + } + ], + "credit_limits": [], + "customer_group_name": "Commercial - Installation", + "default_price_list": "Commerical Installation", + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2025-01-30 14:06:42.132018", + "name": "Commercial - Installation", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": "Net 10th" + }, + { + "accounts": [ + { + "account": "Debtors - S", + "advance_account": null, + "company": "Sprinklers Northwest", + "parent": "Residential - Irrigation service", + "parentfield": "accounts", + "parenttype": "Customer Group" + } + ], + "credit_limits": [], + "customer_group_name": "Residential - Irrigation service", + "default_price_list": "Residential", + "docstatus": 0, + "doctype": "Customer Group", + "is_group": 0, + "modified": "2025-01-30 14:03:51.259924", + "name": "Residential - Irrigation service", + "old_parent": "All Customer Groups", + "parent_customer_group": "All Customer Groups", + "payment_terms": "Due on receipt" + } +] \ No newline at end of file diff --git a/custom_ui/hooks.py b/custom_ui/hooks.py index 5d72f5a..fb5e921 100644 --- a/custom_ui/hooks.py +++ b/custom_ui/hooks.py @@ -240,6 +240,7 @@ fixtures = [ {"dt": "Payment Terms Template"}, {"dt": "Territory"}, {"dt": "Selling Settings"}, + {"dt": "Customer Group"}, ]