mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fix: Accounts mandatory depending on share transfer type (#19523)
This commit is contained in:
@@ -21,6 +21,8 @@ frappe.ui.form.on('Share Transfer', {
|
|||||||
erpnext.share_transfer.make_jv(frm);
|
erpnext.share_transfer.make_jv(frm);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frm.toggle_reqd("asset_account", frm.doc.transfer_type != "Transfer");
|
||||||
},
|
},
|
||||||
no_of_shares: (frm) => {
|
no_of_shares: (frm) => {
|
||||||
if (frm.doc.rate != undefined || frm.doc.rate != null){
|
if (frm.doc.rate != undefined || frm.doc.rate != null){
|
||||||
@@ -56,6 +58,10 @@ frappe.ui.form.on('Share Transfer', {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
transfer_type: function(frm) {
|
||||||
|
frm.toggle_reqd("asset_account", frm.doc.transfer_type != "Transfer");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user