(cherry picked from commit 6aed9e26acaf266f7260adab16656d554c6bb022) Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
This commit is contained in:
parent
fe2a34f171
commit
b5926a33b3
@ -135,7 +135,7 @@ def mark_attendance(employee, attendance_date, status, shift=None, leave_type=No
|
|||||||
def mark_bulk_attendance(data):
|
def mark_bulk_attendance(data):
|
||||||
import json
|
import json
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
if isinstance(data, frappe.string_types):
|
if isinstance(data, str):
|
||||||
data = json.loads(data)
|
data = json.loads(data)
|
||||||
data = frappe._dict(data)
|
data = frappe._dict(data)
|
||||||
company = frappe.get_value('Employee', data.employee, 'company')
|
company = frappe.get_value('Employee', data.employee, 'company')
|
||||||
|
Loading…
Reference in New Issue
Block a user