Files
schuetz3-erpnext/erpnext/patches/v12_0/set_job_offer_applicant_email.py
Ankush Menat c07713b860 style: bulk format code with black
v13 port because otherwise backports will result in conflicts always
2022-03-29 17:29:34 +05:30

15 lines
249 B
Python

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)
"""
)