2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Remove pricing button from part page

This commit is contained in:
Oliver Walters
2023-02-21 21:34:48 +11:00
parent 234134d8f9
commit 5b9bfcc930

View File

@ -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 %}',