diff --git a/docker-installation.md b/docker-installation.md index 99a272f1..b5c8ef80 100644 --- a/docker-installation.md +++ b/docker-installation.md @@ -4,6 +4,8 @@ $ git clone https://github.com/frappe/lms.git $ cd lms + +$ cd docker ``` **Step 2:** Run docker-compose diff --git a/frontend/src/components/BatchOverlay.vue b/frontend/src/components/BatchOverlay.vue index bcd5413c..a01b7388 100644 --- a/frontend/src/components/BatchOverlay.vue +++ b/frontend/src/components/BatchOverlay.vue @@ -66,7 +66,13 @@ - + +
{{ _('Your evaluation for the course ${0} has been scheduled on ${1} at ${2}.').format(title, frappe.utils.format_date(doc.date, \"medium\"), frappe.utils.format_time(doc.start_time, \"short\")) }}
\n\n{{ _(\"Please prepare well and be on time for the evaluations.\") }}
\n", + "message": "{% set title = frappe.db.get_value(\"LMS Course\", doc.course, \"title\") %}\n\n{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2}.').format(title, frappe.utils.format_date(doc.date, \"medium\"), frappe.utils.format_time(doc.start_time, \"short\")) }}
\n\n{{ _(\"Please prepare well and be on time for the evaluations.\") }}
\n", "message_type": "HTML", "modified": "2023-11-29 17:26:53.355501", "modified_by": "Administrator", @@ -29,4 +29,4 @@ "send_system_notification": 0, "send_to_all_assignees": 0, "subject": "Reminder for Certificate Evaluation" -} \ No newline at end of file +} diff --git a/lms/lms/utils.py b/lms/lms/utils.py index 5c676eeb..7fce3473 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -1194,6 +1194,7 @@ def get_course_details(course): "paid_course", "course_price", "currency", + "amount_usd", ], as_dict=1, ) @@ -1214,6 +1215,9 @@ def get_course_details(course): course_details.instructors = get_instructors(course_details.name) if course_details.paid_course: + course_details.course_price, course_details.currency = check_multicurrency( + course_details.course_price, course_details.currency, None, course_details.amount_usd + ) course_details.price = fmt_money( course_details.course_price, 0, course_details.currency ) @@ -1385,9 +1389,11 @@ def get_batch_details(batch): "seat_count", "published", "amount", + "amount_usd", "currency", "paid_batch", "evaluation_end_date", + "allow_self_enrollment", ], as_dict=True, ) @@ -1398,7 +1404,11 @@ def get_batch_details(batch): batch_details.students = frappe.get_all( "Batch Student", {"parent": batch}, pluck="student" ) - batch_details.price = fmt_money(batch_details.amount, 0, batch_details.currency) + if batch_details.paid_batch: + batch_details.amount, batch_details.currency = check_multicurrency( + batch_details.amount, batch_details.currency, None, batch_details.amount_usd + ) + batch_details.price = fmt_money(batch_details.amount, 0, batch_details.currency) if batch_details.seat_count: students_enrolled = frappe.db.count( diff --git a/lms/www/batches/batch.html b/lms/www/batches/batch.html index cc501ddc..f368c70c 100644 --- a/lms/www/batches/batch.html +++ b/lms/www/batches/batch.html @@ -49,11 +49,14 @@ - {{ frappe.utils.format_date(batch_info.start_date, "long") }} - + {{ frappe.utils.format_date(batch_info.start_date, "long") }} + + {% if batch_info.start_date != batch_info.end_date %} - {{ frappe.utils.format_date(batch_info.end_date, "long") }} + - {{ frappe.utils.format_date(batch_info.end_date, "long") }} + {% endif %}