Skip to content

Commit

Permalink
feat: Utility Billing Settings shortcut on workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
muruthigitau committed Oct 24, 2024
1 parent b21f127 commit 34e8e15
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 59 deletions.
122 changes: 66 additions & 56 deletions utility_billing/fixtures/custom_field.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Sales Order",
"dt": "Sales Invoice Item",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "utility_service_request",
"fieldname": "block",
"fieldtype": "Link",
"hidden": 0,
"hide_border": 0,
Expand All @@ -26,20 +26,21 @@
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "more_info",
"insert_after": "item_name",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Utility Service Request",
"label": "Block",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-10-22 07:02:26.919951",
"modified": "2024-10-17 09:59:42.538337",
"module": "Utility Billing",
"name": "Sales Order-custom_utility_service_request",
"name": "Sales Invoice Item-custom_block",
"no_copy": 0,
"non_negative": 0,
"options": "Utility Service Request",
"options": "Utility Tariff Block",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -67,10 +68,10 @@
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Sales Invoice Item",
"dt": "BOM",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "block",
"fieldname": "utility_service_request",
"fieldtype": "Link",
"hidden": 0,
"hide_border": 0,
Expand All @@ -82,20 +83,21 @@
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "item_name",
"insert_after": "quantity",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Block",
"label": "Utility Service Request",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-10-17 09:59:42.538337",
"modified": "2024-10-14 05:49:24.195096",
"module": "Utility Billing",
"name": "Sales Invoice Item-custom_block",
"name": "BOM-custom_utility_request",
"no_copy": 0,
"non_negative": 0,
"options": "Utility Tariff Block",
"options": "Utility Service Request",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -123,11 +125,11 @@
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "BOM",
"dt": "Customer",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "utility_service_request",
"fieldtype": "Link",
"fieldname": "nrc_or_passport_no",
"fieldtype": "Data",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
Expand All @@ -138,20 +140,21 @@
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "quantity",
"insert_after": "customer_group",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Utility Service Request",
"label": "NRC or Passport No",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-10-14 05:49:24.195096",
"modified": "2024-10-14 05:53:37.647063",
"module": "Utility Billing",
"name": "BOM-custom_utility_request",
"name": "Customer-custom_nrc_or_passport_no",
"no_copy": 0,
"non_negative": 0,
"options": "Utility Service Request",
"options": null,
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -179,11 +182,11 @@
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Customer",
"dt": "Item Price",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "nrc_or_passport_no",
"fieldtype": "Data",
"fieldname": "is_fixed_meter_charge",
"fieldtype": "Check",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
Expand All @@ -194,20 +197,21 @@
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "customer_group",
"insert_after": "item_description",
"is_system_generated": 0,
"is_virtual": 0,
"label": "NRC or Passport No",
"label": "Is Fixed Meter Charge",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-10-14 05:53:37.647063",
"modified": "2024-10-22 11:22:36.731436",
"module": "Utility Billing",
"name": "Customer-custom_nrc_or_passport_no",
"name": "Item Price-custom_is_fixed_meter_charge",
"no_copy": 0,
"non_negative": 0,
"options": null,
"options": "",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -264,6 +268,7 @@
"non_negative": 0,
"options": "Utility Tariff Block",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -294,8 +299,8 @@
"dt": "Item Price",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "is_fixed_meter_charge",
"fieldtype": "Check",
"fieldname": "tariffs",
"fieldtype": "Table",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
Expand All @@ -306,20 +311,21 @@
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "item_description",
"insert_after": "section_break_24",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Is Fixed Meter Charge",
"label": "Tariffs",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-10-22 11:22:36.731436",
"modified": "2024-10-14 02:10:02.044248",
"module": "Utility Billing",
"name": "Item Price-custom_is_fixed_meter_charge",
"name": "Item Price-custom_tariffs",
"no_copy": 0,
"non_negative": 0,
"options": "",
"options": "Item Price Tariff",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -347,10 +353,10 @@
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Item Price",
"dt": "Sales Order",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "tariffs",
"fieldname": "meter_readings",
"fieldtype": "Table",
"hidden": 0,
"hide_border": 0,
Expand All @@ -362,20 +368,21 @@
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "section_break_24",
"insert_after": "items",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Tariffs",
"label": "Meter Readings",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-10-14 02:10:02.044248",
"modified": "2024-10-22 09:00:05.556885",
"module": "Utility Billing",
"name": "Item Price-custom_tariffs",
"name": "Sales Order-custom_sales_order_meter_reading",
"no_copy": 0,
"non_negative": 0,
"options": "Item Price Tariff",
"options": "Sales Order Meter Reading",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -403,11 +410,11 @@
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Sales Order",
"dt": "Issue",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "meter_readings",
"fieldtype": "Table",
"fieldname": "utility_service_request",
"fieldtype": "Link",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
Expand All @@ -418,20 +425,21 @@
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "items",
"insert_after": "email_account",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Meter Readings",
"label": "Utility Service Request",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-10-22 09:00:05.556885",
"modified": "2024-10-14 05:31:21.910805",
"module": "Utility Billing",
"name": "Sales Order-custom_sales_order_meter_reading",
"name": "Issue-custom_request_for_utility_service",
"no_copy": 0,
"non_negative": 0,
"options": "Sales Order Meter Reading",
"options": "Utility Service Request",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -488,6 +496,7 @@
"non_negative": 0,
"options": "Sales Invoice Meter Reading",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down Expand Up @@ -515,7 +524,7 @@
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "Issue",
"dt": "Sales Order",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "utility_service_request",
Expand All @@ -530,20 +539,21 @@
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "email_account",
"insert_after": "more_info",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Utility Service Request",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-10-14 05:31:21.910805",
"modified": "2024-10-22 07:02:26.919951",
"module": "Utility Billing",
"name": "Issue-custom_request_for_utility_service",
"name": "Sales Order-custom_utility_service_request",
"no_copy": 0,
"non_negative": 0,
"options": "Utility Service Request",
"permlevel": 0,
"placeholder": null,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"charts": [],
"content": "[{\"id\":\"fqWR1Nv2hU\",\"type\":\"header\",\"data\":{\"text\":\"Utility Billing Shortcuts<br>\",\"col\":12}},{\"id\":\"_3e05httN7\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Meter Reading\",\"col\":3}},{\"id\":\"1acTaFDYDY\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Utility Service Request\",\"col\":4}}]",
"creation": "2024-10-15 09:19:30.540834",
"content": "[{\"id\":\"fqWR1Nv2hU\",\"type\":\"header\",\"data\":{\"text\":\"Utility Billing Shortcuts<br>\",\"col\":12}},{\"id\":\"_3e05httN7\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Meter Reading\",\"col\":3}},{\"id\":\"1acTaFDYDY\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Utility Service Request\",\"col\":4}},{\"id\":\"RLwaO1wtgC\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Utility Billing Settings\",\"col\":3}}]",
"creation": "2024-10-24 13:04:18.087889",
"custom_blocks": [],
"docstatus": 0,
"doctype": "Workspace",
Expand All @@ -13,7 +13,7 @@
"is_hidden": 0,
"label": "Utility Billing",
"links": [],
"modified": "2024-10-17 06:39:06.370295",
"modified": "2024-10-24 13:07:25.645617",
"modified_by": "Administrator",
"module": "Utility Billing",
"name": "Utility Billing",
Expand All @@ -33,6 +33,13 @@
"stats_filter": "[]",
"type": "DocType"
},
{
"color": "Grey",
"doc_view": "List",
"label": "Utility Billing Settings",
"link_to": "Utility Billing Settings",
"type": "DocType"
},
{
"color": "Grey",
"doc_view": "List",
Expand Down

0 comments on commit 34e8e15

Please sign in to comment.