mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Revert 1fb76b9
				
					
				
			Removes global functions to enable / disable entire sections of functionality
This commit is contained in:
		| @@ -2,10 +2,6 @@ | ||||
| {% load static %} | ||||
| {% load inventree_extras %} | ||||
|  | ||||
| {% settings_value 'STOCK_FUNCTION_ENABLE' as enable_stock %} | ||||
| {% settings_value 'SO_FUNCTION_ENABLE' as enable_so %} | ||||
| {% settings_value 'PO_FUNCTION_ENABLE' as enable_po %} | ||||
|      | ||||
| <ul class='list-group'> | ||||
|     <li class='list-group-item'> | ||||
|         <a href='#' id='company-menu-toggle'> | ||||
| @@ -32,7 +28,6 @@ | ||||
|     {% endif %} | ||||
|  | ||||
|     {% if company.is_manufacturer or company.is_supplier %} | ||||
|     {% if enable_stock %} | ||||
|     <li class='list-group-item' title='{% trans "Stock Items" %}'> | ||||
|         <a href='#' id='select-company-stock' class='nav-toggle'> | ||||
|             <span class='fas fa-boxes sidebar-icon'></span> | ||||
| @@ -40,9 +35,8 @@ | ||||
|         </a> | ||||
|     </li> | ||||
|     {% endif %} | ||||
|     {% endif %} | ||||
|  | ||||
|     {% if company.is_supplier and enable_po %} | ||||
|     {% if company.is_supplier %} | ||||
|     <li class='list-group-item' title='{% trans "Purchase Orders" %}'> | ||||
|         <a href='#' id='select-purchase-orders' class='nav-toggle'> | ||||
|             <span class='fas fa-shopping-cart sidebar-icon'></span> | ||||
| @@ -51,7 +45,7 @@ | ||||
|     </li> | ||||
|     {% endif %} | ||||
|  | ||||
|     {% if company.is_customer and enable_so %} | ||||
|     {% if company.is_customer %} | ||||
|     <li class='list-group-item' title='{% trans "Sales Orders" %}'> | ||||
|         <a href='#' id='select-sales-orders' class='nav-toggle'> | ||||
|             <span class='fas fa-truck sidebar-icon'></span> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user