mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
Fixed Sanctioned Amount Update Issue in Expense Claim
This commit is contained in:
@@ -288,11 +288,7 @@ frappe.ui.form.on("Expense Claim Detail", {
|
|||||||
claim_amount: function(frm, cdt, cdn) {
|
claim_amount: function(frm, cdt, cdn) {
|
||||||
var child = locals[cdt][cdn];
|
var child = locals[cdt][cdn];
|
||||||
var doc = frm.doc;
|
var doc = frm.doc;
|
||||||
|
frappe.model.set_value(cdt, cdn, 'sanctioned_amount', child.claim_amount);
|
||||||
if(!child.sanctioned_amount){
|
|
||||||
frappe.model.set_value(cdt, cdn, 'sanctioned_amount', child.claim_amount);
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.calculate_total(doc,cdt,cdn);
|
cur_frm.cscript.calculate_total(doc,cdt,cdn);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -339,4 +335,4 @@ cur_frm.fields_dict['task'].get_query = function(doc) {
|
|||||||
'project': doc.project
|
'project': doc.project
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user