fix: show price on all course cards
This commit is contained in:
@@ -194,7 +194,7 @@
|
|||||||
"fieldname": "currency",
|
"fieldname": "currency",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Currency",
|
"label": "Currency",
|
||||||
"mandatory_depends_on": "paid_certificate",
|
"mandatory_depends_on": "paid_course",
|
||||||
"options": "Currency"
|
"options": "Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Course Price",
|
"label": "Course Price",
|
||||||
"option": "currency",
|
"option": "currency",
|
||||||
"mandatory_depends_on": "paid_certificate"
|
"mandatory_depends_on": "paid_course"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "column_break_rxww",
|
"fieldname": "column_break_rxww",
|
||||||
@@ -254,7 +254,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"make_attachments_public": 1,
|
"make_attachments_public": 1,
|
||||||
"modified": "2023-08-02 12:07:26.354119",
|
"modified": "2023-08-02 12:07:26.354110",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "LMS Course",
|
"name": "LMS Course",
|
||||||
|
|||||||
@@ -559,7 +559,9 @@ def get_courses_under_review():
|
|||||||
"title",
|
"title",
|
||||||
"short_introduction",
|
"short_introduction",
|
||||||
"image",
|
"image",
|
||||||
"enable_certification",
|
"paid_course",
|
||||||
|
"course_price",
|
||||||
|
"currency",
|
||||||
"status",
|
"status",
|
||||||
"published",
|
"published",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
|
|
||||||
<div class="course-price">
|
<div class="course-price">
|
||||||
{% if course.paid_course %}
|
{% if course.paid_course %}
|
||||||
{{ format_amount(course.course_price, course.currency) }}
|
{{ frappe.utils.fmt_money(course.course_price, 0, course.currency) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ _("Free") }}
|
{{ _("Free") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -103,8 +103,8 @@ def get_enrolled_courses():
|
|||||||
"short_introduction",
|
"short_introduction",
|
||||||
"image",
|
"image",
|
||||||
"enable_certification",
|
"enable_certification",
|
||||||
"paid_certificate",
|
"paid_course",
|
||||||
"price_certificate",
|
"course_price",
|
||||||
"currency",
|
"currency",
|
||||||
"published",
|
"published",
|
||||||
],
|
],
|
||||||
@@ -148,7 +148,9 @@ def get_authored_courses(member=None, only_published=True):
|
|||||||
"title",
|
"title",
|
||||||
"short_introduction",
|
"short_introduction",
|
||||||
"image",
|
"image",
|
||||||
"enable_certification",
|
"paid_course",
|
||||||
|
"course_price",
|
||||||
|
"currency",
|
||||||
"status",
|
"status",
|
||||||
"published",
|
"published",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -129,8 +129,8 @@ def get_class_course_details(class_courses):
|
|||||||
"upcoming",
|
"upcoming",
|
||||||
"short_introduction",
|
"short_introduction",
|
||||||
"image",
|
"image",
|
||||||
"paid_certificate",
|
"paid_course",
|
||||||
"price_certificate",
|
"course_price",
|
||||||
"enable_certification",
|
"enable_certification",
|
||||||
"currency",
|
"currency",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
{{ Notes(course) }}
|
{{ Notes(course) }}
|
||||||
|
|
||||||
<div class="vertically-center mb-3 bold-heading">
|
<div class="vertically-center mb-3 bold-heading">
|
||||||
{{ format_amount(course.course_price, course.currency) }}
|
{{ frappe.utils.fmt_money(course.course_price, 0, course.currency) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="vertically-center mb-3">
|
<div class="vertically-center mb-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user