def METHOD_NAME(payroll_entries):
	payroll = [d.name for d in payroll_entries]
	salary_slips = get_all(
		"Salary Slip",
		filters=[("payroll_entry", "IN", payroll)],
		fields=[
			"modified",
			"net_pay",
			"bank_name",
			"bank_account_no",
			"payroll_entry",
			"employee",
			"employee_name",
			"status",
		],
	)
	payroll_entry_map = {}
	for entry in payroll_entries:
		payroll_entry_map[entry.name] = entry
	# appending company debit accounts
	for slip in salary_slips:
		if slip.payroll_entry:
			slip["debit_acc_no"] = payroll_entry_map[slip.payroll_entry]["company_account"]
		else:
			slip["debit_acc_no"] = None
	return salary_slips