mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 23:10:26 +00:00
Merge pull request #12534 from rohitwaghchaure/patch_fix_v7
[Fix] Timesheet patch
This commit is contained in:
@@ -16,7 +16,7 @@ def execute():
|
|||||||
else:
|
else:
|
||||||
company = frappe.db.get_single_value('Global Defaults', 'default_company')
|
company = frappe.db.get_single_value('Global Defaults', 'default_company')
|
||||||
|
|
||||||
time_sheet = make_timesheet(data.production_order)
|
time_sheet = make_timesheet(data.production_order, company)
|
||||||
args = get_timelog_data(data)
|
args = get_timelog_data(data)
|
||||||
add_timesheet_detail(time_sheet, args)
|
add_timesheet_detail(time_sheet, args)
|
||||||
if data.docstatus == 2:
|
if data.docstatus == 2:
|
||||||
|
|||||||
Reference in New Issue
Block a user