mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Remove pricing button from part page
This commit is contained in:
		@@ -57,9 +57,6 @@
 | 
			
		||||
</div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if part.active %}
 | 
			
		||||
<button type='button' class='btn btn-outline-secondary' id='price-button' title='{% trans "Show pricing information" %}'>
 | 
			
		||||
    <span id='part-price-icon' class='fas fa-dollar-sign'/>
 | 
			
		||||
</button>
 | 
			
		||||
{% if roles.stock.change %}
 | 
			
		||||
<div class='btn-group'>
 | 
			
		||||
    <button id='stock-actions' title='{% trans "Stock actions" %}' class='btn btn-outline-secondary dropdown-toggle' type='button' data-bs-toggle='dropdown'>
 | 
			
		||||
@@ -508,16 +505,6 @@
 | 
			
		||||
        adjustPartStock('count');
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    $("#price-button").click(function() {
 | 
			
		||||
        launchModalForm(
 | 
			
		||||
            "{% url 'part-pricing' part.id %}",
 | 
			
		||||
            {
 | 
			
		||||
                submit_text: '{% trans "Calculate" %}',
 | 
			
		||||
                hideErrorMessage: true,
 | 
			
		||||
            }
 | 
			
		||||
        );
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    $("#toggle-starred").click(function() {
 | 
			
		||||
        toggleStar({
 | 
			
		||||
            url: '{% url "api-part-detail" part.pk %}',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user