def reorder_item():
 if (not (frappe.db.a_row_exists('Company') and frappe.db.a_row_exists('Fiscal Year'))):
  return
 if cint(frappe.db.get_value('Stock Settings', None, 'auto_indent')):
  return _reorder_item()

def reorder_item ( ) : if ( not ( frappe . db . a_row_exists ( 'Company' ) and frappe . db . a_row_exists ( 'Fiscal Year' ) ) ) : return if cint ( frappe . db . get_value ( 'Stock Settings' , None , 'auto_indent' ) ) : return _reorder_item ( )
reorder item if stock reaches reorder level .