mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
Salary Component - account mandatory for separate payment entry
This commit is contained in:
@@ -40,6 +40,14 @@ frappe.ui.form.on('Salary Component', {
|
||||
if(frm.doc.variable_based_on_taxable_salary){
|
||||
set_value_for_condition_and_formula(frm);
|
||||
}
|
||||
},
|
||||
create_separate_payment_entry_against_benefit_claim: function(frm) {
|
||||
if(frm.doc.create_separate_payment_entry_against_benefit_claim){
|
||||
frm.set_df_property("accounts", "reqd", 1);
|
||||
}
|
||||
else{
|
||||
frm.set_df_property("accounts", "reqd", 0);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user