Salary Component - account mandatory for separate payment entry
This commit is contained in:
parent
1248f6a752
commit
77a91f0d01
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user