Skip to content

Commit 308815c

Browse files
authored
Merge pull request #1586 from frappe/version-14-hotfix
chore: release v14
2 parents 1558689 + 2c08519 commit 308815c

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

hrms/hr/doctype/vehicle_log/vehicle_log.js

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
// For license information, please see license.txt
33

44
frappe.ui.form.on("Vehicle Log", {
5+
setup: function (frm) {
6+
frm.set_query("employee", function() {
7+
return {
8+
filters: {
9+
status: "Active",
10+
},
11+
};
12+
});
13+
},
514
refresh: function(frm) {
615
if(frm.doc.docstatus == 1) {
716
frm.add_custom_button(__('Expense Claim'), function() {

hrms/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.js

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ frappe.query_reports["Monthly Attendance Sheet"] = {
8383
const summarized_view = frappe.query_report.get_filter_value('summarized_view');
8484
const group_by = frappe.query_report.get_filter_value('group_by');
8585

86+
if (group_by && column.colIndex === 1) {
87+
value = "<strong>" + value + "</strong>";
88+
}
89+
8690
if (!summarized_view) {
8791
if ((group_by && column.colIndex > 3) || (!group_by && column.colIndex > 2)) {
8892
if (value == 'P' || value == 'WFH')

hrms/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,19 @@ def get_columns(filters: Filters) -> List[Dict]:
7272
columns = []
7373

7474
if filters.group_by:
75+
options_mapping = {
76+
"Branch": "Branch",
77+
"Grade": "Employee Grade",
78+
"Department": "Department",
79+
"Designation": "Designation",
80+
}
81+
options = options_mapping.get(filters.group_by)
7582
columns.append(
7683
{
7784
"label": _(filters.group_by),
7885
"fieldname": frappe.scrub(filters.group_by),
7986
"fieldtype": "Link",
80-
"options": "Branch",
87+
"options": options,
8188
"width": 120,
8289
}
8390
)
@@ -191,7 +198,7 @@ def get_data(filters: Filters, attendance_map: Dict) -> List[Dict]:
191198
records = get_rows(employee_details[value], filters, holiday_map, attendance_map)
192199

193200
if records:
194-
data.append({group_by_column: frappe.bold(value)})
201+
data.append({group_by_column: value})
195202
data.extend(records)
196203
else:
197204
data = get_rows(employee_details, filters, holiday_map, attendance_map)

hrms/payroll/report/bank_remittance/bank_remittance.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ def execute(filters=None):
2222
"hidden": 1,
2323
"width": 200,
2424
},
25-
{"label": _("Payment Date"), "fieldtype": "Data", "fieldname": "payment_date", "width": 100},
25+
{
26+
"label": _("Payment Date"),
27+
"fieldtype": "Data",
28+
"fieldname": "payment_date",
29+
"width": 100,
30+
},
2631
{
2732
"label": _("Employee Name"),
2833
"fieldtype": "Link",
@@ -146,12 +151,10 @@ def get_emp_bank_ifsc_code(salary_slips):
146151
emp_names = [d.employee for d in salary_slips]
147152
ifsc_codes = get_all("Employee", [("name", "IN", emp_names)], ["ifsc_code", "name"])
148153

149-
ifsc_codes_map = {}
150-
for code in ifsc_codes:
151-
ifsc_codes_map[code.name] = code
154+
ifsc_codes_map = {code.name: code.ifsc_code for code in ifsc_codes}
152155

153156
for slip in salary_slips:
154-
slip["ifsc_code"] = ifsc_codes_map[code.name]["ifsc_code"]
157+
slip["ifsc_code"] = ifsc_codes_map[slip.employee]
155158

156159
return salary_slips
157160

0 commit comments

Comments
 (0)