fix(Education): descriptions not copied while creating fees from fee structure (#22792)
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
This commit is contained in:
parent
9843e9f917
commit
89f9346185
@ -152,7 +152,7 @@ def get_fee_components(fee_structure):
|
|||||||
:param fee_structure: Fee Structure.
|
:param fee_structure: Fee Structure.
|
||||||
"""
|
"""
|
||||||
if fee_structure:
|
if fee_structure:
|
||||||
fs = frappe.get_list("Fee Component", fields=["fees_category", "amount"] , filters={"parent": fee_structure}, order_by= "idx")
|
fs = frappe.get_list("Fee Component", fields=["fees_category", "description", "amount"] , filters={"parent": fee_structure}, order_by= "idx")
|
||||||
return fs
|
return fs
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -162,6 +162,7 @@ frappe.ui.form.on("Fees", {
|
|||||||
$.each(r.message, function(i, d) {
|
$.each(r.message, function(i, d) {
|
||||||
var row = frappe.model.add_child(frm.doc, "Fee Component", "components");
|
var row = frappe.model.add_child(frm.doc, "Fee Component", "components");
|
||||||
row.fees_category = d.fees_category;
|
row.fees_category = d.fees_category;
|
||||||
|
row.description = d.description;
|
||||||
row.amount = d.amount;
|
row.amount = d.amount;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user