Merge pull request #15335 from rohitwaghchaure/fixed_patch_job_card

[Fix] Patch
This commit is contained in:
rohitwaghchaure 2018-09-06 22:38:55 +05:30 committed by GitHub
commit ac696b9497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,5 +14,5 @@ def execute():
where (work_order is not null and work_order != '') and docstatus = 0""", as_dict=1):
if d.work_order:
doc = frappe.get_doc('Work Order', d.work_order)
doc.make_job_card()
doc.create_job_card()
frappe.delete_doc('Timesheet', d.name)