mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
feat: add job applicant's email in job offer (#20153)
This commit is contained in:
12
erpnext/patches/v12_0/set_job_offer_applicant_email.py
Normal file
12
erpnext/patches/v12_0/set_job_offer_applicant_email.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
frappe.reload_doc("hr", "doctype", "job_offer")
|
||||
|
||||
frappe.db.sql("""
|
||||
UPDATE
|
||||
`tabJob Offer` AS offer
|
||||
SET
|
||||
applicant_email = (SELECT email_id FROM `tabJob Applicant` WHERE name = offer.job_applicant)
|
||||
""")
|
||||
Reference in New Issue
Block a user