def METHOD_NAME(payment_accounts, payroll_entries):
	company_accounts = get_all(
		"Bank Account", [("account", "in", payment_accounts)], ["account", "bank_account_no"]
	)
	company_accounts_map = {}
	for acc in company_accounts:
		company_accounts_map[acc.account] = acc
	for entry in payroll_entries:
		company_account = ""
		if entry.payment_account in company_accounts_map:
			company_account = company_accounts_map[entry.payment_account]["bank_account_no"]
		entry["company_account"] = company_account
	return payroll_entries