2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

quantity also for modal

This commit is contained in:
2021-05-05 20:55:37 +02:00
parent dc4fb64987
commit b392586a08
2 changed files with 18 additions and 3 deletions

View File

@ -400,6 +400,8 @@ function setupCallbacks() {
$(".button-price").click(function() {
var pk = $(this).attr('pk');
var idx = $(this).closest('tr').attr('data-index');
var row = table.bootstrapTable('getData')[idx];
launchModalForm(
"{% url 'line-pricing' %}",
@ -407,6 +409,7 @@ function setupCallbacks() {
submit_text: '{% trans "Calculate price" %}',
data: {
line_item: pk,
quantity: row.quantity,
},
}
);