fix: job offer validation fix (#22504)

This commit is contained in:
Anurag Mishra 2020-06-29 18:23:22 +05:30 committed by GitHub
parent 3e93a2f67f
commit 343651fc39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,8 @@ class JobOffer(Document):
return frappe.get_all("Job Offer", filters={
"offer_date": ['between', (from_date, to_date)],
"designation": self.designation,
"company": self.company
"company": self.company,
"docstatus": 1
}, fields=['name'])
def update_job_applicant(status, job_applicant):