text: /**
   * Дополнительные методы справочника Номенклатура
   *
   * &copy; Evgeniy Malyarov http://www.oknosoft.ru 2014-2016
   *
   * @module cat_nom
   */
  
  (function($p){
  
  	var _mgr = $p.cat.nom;
  
  	// модификаторы
  	_mgr.sql_selection_list_flds = function(initial_value){
  		return "SELECT _t_.ref, _t_.`_deleted`, _t_.is_folder, _t_.id, _t_.article, _t_.name as presentation, _u_.name as nom_unit, _k_.name as nom_kind," +
  			" case when _t_.ref = '" + initial_value + "' then 0 else 1 end as is_initial_value FROM cat_nom AS _t_" +
  			" left outer join cat_units as _u_ on _u_.ref = _t_.base_unit" +
  			" left outer join cat_nom_kinds as _k_ on _k_.ref = _t_.nom_kind %3 %4 LIMIT 300";
  	};
  
  	_mgr.sql_selection_where_flds = function(filter){
  		return " OR _t_.article LIKE '" + filter + "' OR _t_.id LIKE '" + filter + "' OR _t_.name LIKE '" + filter + "'";
  	};
  
  
  	// публичные методы объекта
  
  })($p);
  