diff --git a/crm/api/doc.py b/crm/api/doc.py index e09fd90e2..4150aaa01 100644 --- a/crm/api/doc.py +++ b/crm/api/doc.py @@ -172,6 +172,12 @@ def get_type(field): return "phone" elif field.fieldtype == "Data" and field.options == "Email": return "email" + elif field.fieldtype == "Check": + return "checkbox" + elif field.fieldtype == "Int": + return "number" + elif field.fieldtype in ["Small Text", "Text", "Long Text"]: + return "textarea" elif field.read_only: return "read_only" return field.fieldtype.lower() \ No newline at end of file diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.json b/crm/fcrm/doctype/crm_deal/crm_deal.json index 1cc608fc5..8e75e2b20 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.json +++ b/crm/fcrm/doctype/crm_deal/crm_deal.json @@ -40,7 +40,7 @@ { "fetch_from": "organization.annual_revenue", "fieldname": "annual_revenue", - "fieldtype": "Int", + "fieldtype": "Currency", "label": "Amount", "read_only": 1 }, @@ -136,7 +136,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-11-22 13:26:52.401192", + "modified": "2023-11-22 17:52:31.595525", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Deal", diff --git a/frontend/src/components/SectionFields.vue b/frontend/src/components/SectionFields.vue index d0c2ec27d..12d6dbd04 100644 --- a/frontend/src/components/SectionFields.vue +++ b/frontend/src/components/SectionFields.vue @@ -1,5 +1,5 @@