fix: code review changes
This commit is contained in:
parent
e3fe8ff195
commit
b648b9cf93
@ -154,11 +154,8 @@ cur_frm.cscript.account_head = function(doc, cdt, cdn) {
|
|||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if(d.charge_type!=="Actual"){
|
if(d.charge_type!=="Actual"){
|
||||||
frappe.model.set_value(cdt, cdn, "rate", r.message.tax_rate || 0);
|
frappe.model.set_value(cdt, cdn, "rate", r.message.tax_rate || 0);
|
||||||
frappe.model.set_value(cdt, cdn, "description", r.message.account_name);
|
|
||||||
}
|
|
||||||
else if(d.charge_type == 'Actual'){
|
|
||||||
frappe.model.set_value(cdt, cdn, "description", r.message.account_name);
|
|
||||||
}
|
}
|
||||||
|
frappe.model.set_value(cdt, cdn, "description", r.message.account_name);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user