Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions education/desktop_icon/education.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"app": "education",
"bg_color": "gray",
"creation": "2026-03-24 17:21:10.011412",
"docstatus": 0,
"doctype": "Desktop Icon",
"hidden": 0,
"icon_type": "App",
"idx": 0,
"label": "Education",
"link_to": "Education",
"link_type": "Workspace Sidebar",
"logo_url": "/assets/education/edu-logo.svg",
"modified": "2026-03-24 17:21:10.011412",
"modified_by": "Administrator",
"name": "Education",
"owner": "Administrator",
"restrict_removal": 0,
"roles": [],
"standard": 1
}
11 changes: 6 additions & 5 deletions education/education/doctype/fee_schedule/fee_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def validate_fee_components(self):
if component not in fee_structure_components:
frappe.msgprint(
_("Fee Component {0} is not part of Fee Structure {1}").format(
component, frappe.bold(getlink("Fee Structure", self.fee_structure))
component,
frappe.bold(getlink("Fee Structure", self.fee_structure)),
),
alert=True,
)
Expand All @@ -115,7 +116,7 @@ def validate_total_against_fee_strucuture(self):
frappe.db.get_all(
"Fee Schedule",
filters={"fee_structure": self.fee_structure},
fields=["sum(total_amount) as total"],
fields=[{"SUM": "total_amount", "as": "total"}],
)[0]["total"]
or 0
)
Expand Down Expand Up @@ -277,9 +278,9 @@ def get_fees_mapped_doc(fee_schedule, doctype, student_id, customer):
},
},
"Fee Component": {
"doctype": "Sales Invoice Item"
if doctype == "Sales Invoice"
else "Sales Order Item",
"doctype": (
"Sales Invoice Item" if doctype == "Sales Invoice" else "Sales Order Item"
),
"field_map": {
# Fee Component Field : Child doctype Field
"item": "item_code",
Expand Down
Loading
Loading