diff --git a/lms/lms/doctype/lms_course/lms_course.json b/lms/lms/doctype/lms_course/lms_course.json index 529ccd48..1a12c77a 100644 --- a/lms/lms/doctype/lms_course/lms_course.json +++ b/lms/lms/doctype/lms_course/lms_course.json @@ -203,13 +203,15 @@ "depends_on": "paid_certificate", "fieldname": "price_certificate", "fieldtype": "Currency", - "label": "Certificate Price" + "label": "Certificate Price", + "mandatory_depends_on": "paid_certificate" }, { "depends_on": "paid_certificate", "fieldname": "currency", "fieldtype": "Link", "label": "Currency", + "mandatory_depends_on": "paid_certificate", "options": "Currency" }, { @@ -258,7 +260,7 @@ "link_fieldname": "course" } ], - "modified": "2022-05-04 11:03:24.001015", + "modified": "2022-05-19 16:59:21.933367", "modified_by": "Administrator", "module": "LMS", "name": "LMS Course", diff --git a/lms/www/courses/course.html b/lms/www/courses/course.html index f67ebe93..292af2f8 100644 --- a/lms/www/courses/course.html +++ b/lms/www/courses/course.html @@ -151,7 +151,7 @@ {% if course.paid_certificate %}
- {{ _("Certificate Price:") }} {{ frappe.utils.fmt_money(course.price_certificate, 2, course.currency) }} + {{ _("Certificate Price:") }} {{ format_amount(course.price_certificate, course.currency) }}
{% endif %}