diff --git a/hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.js b/hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.js
index 0eb4e78320..ca3cdb5d75 100644
--- a/hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.js
+++ b/hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.js
@@ -2,7 +2,16 @@
// For license information, please see license.txt
/* eslint-disable */
-frappe.require("assets/hrms/js/salary_slip_deductions_report_filters.js", function () {
- frappe.query_reports["Salary Payments Based On Payment Mode"] =
- hrms.salary_slip_deductions_report_filters;
-});
+frappe.query_reports["Salary Payments Based On Payment Mode"] = $.extend(
+ {},
+ hrms.salary_slip_deductions_report_filters,
+ {
+ formatter: function (value, row, column, data, default_formatter) {
+ value = default_formatter(value, row, column, data);
+ if (data.branch && data.branch.includes("Total") && column.colIndex === 1) {
+ value = value.bold();
+ }
+ return value;
+ },
+ },
+);
diff --git a/hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py b/hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py
index 33c3b53cf3..04a7cf66f9 100644
--- a/hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py
+++ b/hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py
@@ -112,9 +112,9 @@ def get_data(filters, mode_of_payments):
if data:
data.append(total_row)
data.append({})
- data.append({"branch": "Total Gross Pay", mode_of_payments[0]: gross_pay})
- data.append({"branch": "Total Deductions", mode_of_payments[0]: total_deductions})
- data.append({"branch": "Total Net Pay", mode_of_payments[0]: total_row.get("total")})
+ data.append({"branch": "Total Gross Pay", mode_of_payments[0]: gross_pay})
+ data.append({"branch": "Total Deductions", mode_of_payments[0]: total_deductions})
+ data.append({"branch": "Total Net Pay", mode_of_payments[0]: total_row.get("total")})
currency = erpnext.get_company_currency(filters.company)
report_summary = get_report_summary(gross_pay, total_deductions, total_row.get("total"), currency)
@@ -124,7 +124,7 @@ def get_data(filters, mode_of_payments):
def get_total_based_on_mode_of_payment(data, mode_of_payments):
total = 0
- total_row = {"branch": "Total"}
+ total_row = {"branch": "Total"}
for mode in mode_of_payments:
sum_of_payment = sum([detail[mode] for detail in data if mode in detail.keys()])
total_row[mode] = sum_of_payment