'Raises expection if operation is longer than working hours in the given workstation.'

def check_operation_fits_in_working_hours(self, d):

    from erpnext.manufacturing.doctype.workstation.workstation import check_if_within_operating_hours
    check_if_within_operating_hours(d.workstation, d.operation, d.planned_start_time, d.planned_end_time)
