fix: paid course details on course card template

This commit is contained in:
Jannat Patel
2023-08-17 22:06:25 +05:30
parent 00bb71f714
commit a061a89ee7
2 changed files with 3 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
{% for course_row in courses %}
{% set course = frappe.db.get_value("LMS Course", course_row.course,
["name", "short_introduction", "upcoming", "title", "image", "currency",
"enable_certification", "paid_certificate", "price_certificate"], as_dict=True) %}
"enable_certification", "paid_course", "course_price"], as_dict=True) %}
{{ widgets.CourseCard(course=course, read_only=False) }}
{% endfor %}
</div>

View File

@@ -122,9 +122,11 @@
{{ Notes(course) }}
{% if course.paid_course %}
<div class="vertically-center mb-3 bold-heading">
{{ frappe.utils.fmt_money(course.course_price, 0, course.currency) }}
</div>
{% endif %}
<div class="vertically-center mb-3">
<svg class="icon icon-md mr-1">