Skip to content

Commit

Permalink
Merge pull request #128 from efeone/dev_validation_fixes
Browse files Browse the repository at this point in the history
feat: validation fixes
  • Loading branch information
muhammadmp authored Aug 11, 2023
2 parents 3217eb2 + a11d0ee commit 573322a
Show file tree
Hide file tree
Showing 6 changed files with 415 additions and 190 deletions.
337 changes: 336 additions & 1 deletion aumms/aumms/custom/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
Expand Down Expand Up @@ -116,6 +117,7 @@
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"sort_options": 0,
"translatable": 1,
"unique": 0,
"width": null
Expand Down Expand Up @@ -176,6 +178,7 @@
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
Expand Down Expand Up @@ -236,6 +239,7 @@
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
Expand Down Expand Up @@ -296,6 +300,7 @@
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
Expand Down Expand Up @@ -325,7 +330,7 @@
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"idx": 5,
"idx": 6,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_global_search": 0,
Expand Down Expand Up @@ -356,6 +361,7 @@
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
Expand Down Expand Up @@ -416,6 +422,312 @@
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"_assign": null,
"_comments": null,
"_liked_by": null,
"_user_tags": null,
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"creation": "2023-08-10 16:19:51.484765",
"default": null,
"depends_on": "",
"description": null,
"docstatus": 0,
"dt": "Item",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "has_stone",
"fieldtype": "Check",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"idx": 47,
"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": "weight_uom",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Has Stone",
"length": 0,
"mandatory_depends_on": null,
"modified": "2023-08-10 16:19:51.484765",
"modified_by": "Administrator",
"module": null,
"name": "Item-has_stone",
"no_copy": 0,
"non_negative": 0,
"options": null,
"owner": "Administrator",
"permlevel": 0,
"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,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"_assign": null,
"_comments": null,
"_liked_by": null,
"_user_tags": null,
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"creation": "2023-08-10 16:21:58.357665",
"default": "0",
"depends_on": "has_stone",
"description": null,
"docstatus": 0,
"dt": "Item",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "stone_weight",
"fieldtype": "Float",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"idx": 48,
"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": "has_stone",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Stone Weight",
"length": 0,
"mandatory_depends_on": null,
"modified": "2023-08-10 16:21:58.357665",
"modified_by": "Administrator",
"module": null,
"name": "Item-stone_weight",
"no_copy": 0,
"non_negative": 0,
"options": null,
"owner": "Administrator",
"permlevel": 0,
"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,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"_assign": null,
"_comments": null,
"_liked_by": null,
"_user_tags": null,
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"creation": "2023-08-10 16:22:43.694341",
"default": "0",
"depends_on": "has_stone",
"description": null,
"docstatus": 0,
"dt": "Item",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "stone_charge",
"fieldtype": "Currency",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"idx": 49,
"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": "stone_weight",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Stone Charge",
"length": 0,
"mandatory_depends_on": null,
"modified": "2023-08-10 16:22:43.694341",
"modified_by": "Administrator",
"module": null,
"name": "Item-stone_charge",
"no_copy": 0,
"non_negative": 0,
"options": null,
"owner": "Administrator",
"permlevel": 0,
"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,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"_assign": null,
"_comments": null,
"_liked_by": null,
"_user_tags": null,
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"creation": "2023-08-10 16:25:51.557590",
"default": "0",
"depends_on": "",
"description": null,
"docstatus": 0,
"dt": "Item",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "gold_weight",
"fieldtype": "Float",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"idx": 44,
"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": "warranty_period",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Gold Weight",
"length": 0,
"mandatory_depends_on": "",
"modified": "2023-08-10 16:25:51.557590",
"modified_by": "Administrator",
"module": null,
"name": "Item-gold_weight",
"no_copy": 0,
"non_negative": 0,
"options": null,
"owner": "Administrator",
"permlevel": 0,
"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,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
},
{
"_assign": null,
"_comments": null,
"_liked_by": null,
"_user_tags": null,
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"creation": "2023-08-10 16:32:46.294462",
"default": null,
"depends_on": null,
"description": null,
"docstatus": 0,
"dt": "Item",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "is_aumms_item",
"fieldtype": "Check",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"idx": 16,
"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": "disabled",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Is AuMMS Item",
"length": 0,
"mandatory_depends_on": null,
"modified": "2023-08-10 16:32:46.294462",
"modified_by": "Administrator",
"module": null,
"name": "Item-is_aumms_item",
"no_copy": 0,
"non_negative": 0,
"options": null,
"owner": "Administrator",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"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,
"sort_options": 0,
"translatable": 0,
"unique": 0,
"width": null
Expand All @@ -425,6 +737,29 @@
"doctype": "Item",
"links": [],
"property_setters": [
{
"_assign": null,
"_comments": null,
"_liked_by": null,
"_user_tags": null,
"creation": "2023-08-10 16:24:56.113122",
"default_value": null,
"doc_type": "Item",
"docstatus": 0,
"doctype_or_field": "DocField",
"field_name": "weight_per_unit",
"idx": 0,
"is_system_generated": 0,
"modified": "2023-08-10 16:24:56.113122",
"modified_by": "Administrator",
"module": null,
"name": "Item-weight_per_unit-label",
"owner": "Administrator",
"property": "label",
"property_type": "Data",
"row_name": null,
"value": "Net Weight"
},
{
"_assign": null,
"_comments": null,
Expand Down
Loading

0 comments on commit 573322a

Please sign in to comment.