mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-21 23:45:16 +00:00
quantity also for modal
This commit is contained in:
1 parent
dc4fb64987
commit
b392586a08
2 files changed
+18
-3
No files matched your search
@@ -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,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user