fix: Check Company in Payment Entry before selecting values

This commit is contained in:
marination
2020-09-24 11:51:03 +05:30
parent cfc5e29127
commit 8370d9b997
2 changed files with 17 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ frappe.ui.form.on('Salary Structure', {
var get_payment_mode_account = function(frm, mode_of_payment, callback) {
if(!frm.doc.company) {
frappe.throw(__("Please select the Company first"));
frappe.throw({message:__("Please select a Company first."), title: __("Mandatory")});
}
if(!mode_of_payment) {