diff --git a/erpnext/education/doctype/course_scheduling_tool/course_scheduling_tool.js b/erpnext/education/doctype/course_scheduling_tool/course_scheduling_tool.js
index 907d79b3b8..d57f46ab98 100644
--- a/erpnext/education/doctype/course_scheduling_tool/course_scheduling_tool.js
+++ b/erpnext/education/doctype/course_scheduling_tool/course_scheduling_tool.js
@@ -19,18 +19,22 @@ frappe.ui.form.on('Course Scheduling Tool', {
}
const { course_schedules } = r.message;
if (course_schedules) {
- /* eslint-disable indent */
- const html = `
-
- ${p.mode_of_payment}
-
${amount}
-
+ return (`
+
+
+ ${p.mode_of_payment}
+
${amount}
+
+
-
`
- );
+ `);
}).join('')
}`);
@@ -367,15 +367,12 @@ erpnext.PointOfSale.Payment = class {
const shortcuts = this.get_cash_shortcuts(flt(grand_total));
this.$payment_modes.find('.cash-shortcuts').remove();
- this.$payment_modes.find('[data-payment-type="Cash"]').find('.mode-of-payment-control').after(
- `
- ${
- shortcuts.map(s => {
- return `
${format_currency(s, currency, 0)}
`;
- }).join('')
-}
-
`
- );
+ let shortcuts_html = shortcuts.map(s => {
+ return `
${format_currency(s, currency, 0)}
`;
+ }).join('');
+
+ this.$payment_modes.find('[data-payment-type="Cash"]').find('.mode-of-payment-control')
+ .after(`
${shortcuts_html}
`);
}
get_cash_shortcuts(grand_total) {