fix: eval request issues
This commit is contained in:
Submodule frappe-ui updated: aa44431c18...a349ab070a
@@ -73,12 +73,13 @@ class LMSCertificateRequest(Document):
|
|||||||
|
|
||||||
for req in existing_requests:
|
for req in existing_requests:
|
||||||
if (
|
if (
|
||||||
|
req.name != self.name && (
|
||||||
req.date == getdate(self.date)
|
req.date == getdate(self.date)
|
||||||
or getdate() < getdate(req.date)
|
or getdate() < getdate(req.date)
|
||||||
or (
|
or (
|
||||||
getdate() == getdate(req.date)
|
getdate() == getdate(req.date)
|
||||||
and getdate(self.start_time) < getdate(req.start_time)
|
and getdate(self.start_time) < getdate(req.start_time)
|
||||||
)
|
))
|
||||||
):
|
):
|
||||||
course_title = frappe.db.get_value("LMS Course", req.course, "title")
|
course_title = frappe.db.get_value("LMS Course", req.course, "title")
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
<p> {{ _("Hey {0}").format(doc.member_name) }} </p>
|
<p> {{ _("Hey {0}").format(doc.member_name) }} </p>
|
||||||
<p> {{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, "medium"), frappe.utils.format_time(doc.start_time, "short"), timezone) }}</p>
|
<p> {{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, "medium"), frappe.utils.format_time(doc.start_time, "short"), timezone) }}</p>
|
||||||
<p> {{ _("Your evaluator is {0}").format(evaluator_name) }}
|
<p> {{ _("Your evaluator is {0}").format(evaluator_name) }} </p>
|
||||||
<p> {{ _("Please prepare well and be on time for the evaluations.") }} </p>
|
<p> {{ _("Please prepare well and be on time for the evaluations.") }} </p>
|
||||||
|
|||||||
Reference in New Issue
Block a user