fix: sider

This commit is contained in:
Saqib Ansari
2021-02-16 17:57:44 +05:30
committed by Deepesh Garg
parent 2c56ae78a7
commit 1e7133baf1

View File

@@ -11,9 +11,9 @@ frappe.ui.form.on('Payment Term', {
if (frm.doc.discount) {
let description = __("{0}% of total invoice value will be given as discount.", [frm.doc.discount]);
if (frm.doc.discount_type == 'Amount') {
description = __("{0} will be given as discount.", [fmt_money(frm.doc.discount)])
description = __("{0} will be given as discount.", [fmt_money(frm.doc.discount)]);
}
frm.set_df_property("discount", "description", description);
}
}
})
});