fix: job offer validation fix (#22504) (#22505)

(cherry picked from commit 343651fc393055ed07e6ac6b56203248e0818058)

Co-authored-by: Anurag Mishra <32095923+Anurag810@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2020-06-29 19:10:57 +05:30 committed by GitHub
parent 47a3524a7d
commit c312b3af13
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):