mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
Remove pricing button from part page
This commit is contained in:
@ -57,9 +57,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.active %}
|
{% 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 %}
|
{% if roles.stock.change %}
|
||||||
<div class='btn-group'>
|
<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'>
|
<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');
|
adjustPartStock('count');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#price-button").click(function() {
|
|
||||||
launchModalForm(
|
|
||||||
"{% url 'part-pricing' part.id %}",
|
|
||||||
{
|
|
||||||
submit_text: '{% trans "Calculate" %}',
|
|
||||||
hideErrorMessage: true,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#toggle-starred").click(function() {
|
$("#toggle-starred").click(function() {
|
||||||
toggleStar({
|
toggleStar({
|
||||||
url: '{% url "api-part-detail" part.pk %}',
|
url: '{% url "api-part-detail" part.pk %}',
|
||||||
|
Reference in New Issue
Block a user