mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 13:28:49 +00:00
PEP fixes
This commit is contained in:
parent
11d3975860
commit
d518739643
@ -12,7 +12,6 @@ from django.forms import HiddenInput
|
|||||||
|
|
||||||
from part.models import Part
|
from part.models import Part
|
||||||
from .models import Build, BuildItem
|
from .models import Build, BuildItem
|
||||||
from stock.models import StockItem
|
|
||||||
from .forms import EditBuildForm, EditBuildItemForm
|
from .forms import EditBuildForm, EditBuildItemForm
|
||||||
|
|
||||||
from InvenTree.views import AjaxView, AjaxUpdateView, AjaxCreateView, AjaxDeleteView
|
from InvenTree.views import AjaxView, AjaxUpdateView, AjaxCreateView, AjaxDeleteView
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function makeBuildTable(table, options) {
|
function makeBuildTable(build_table, options) {
|
||||||
/* Construct a table for allocation items to a build.
|
/* Construct a table for allocation items to a build.
|
||||||
* Each row contains a sub_part for the BOM.
|
* Each row contains a sub_part for the BOM.
|
||||||
* Each row can be expended to allocate stock items against that part.
|
* Each row can be expended to allocate stock items against that part.
|
||||||
@ -23,7 +23,6 @@ function makeBuildTable(table, options) {
|
|||||||
$("#part-table-" + row.pk),
|
$("#part-table-" + row.pk),
|
||||||
index,
|
index,
|
||||||
row,
|
row,
|
||||||
table,
|
|
||||||
{
|
{
|
||||||
build: options.build
|
build: options.build
|
||||||
},
|
},
|
||||||
@ -77,11 +76,11 @@ function makeBuildTable(table, options) {
|
|||||||
{
|
{
|
||||||
part: options.part
|
part: options.part
|
||||||
}).then(function(response) {
|
}).then(function(response) {
|
||||||
table.bootstrapTable('load', response)
|
build_table.bootstrapTable('load', response);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Button callbacks
|
// Button callbacks
|
||||||
table.on('click', '.new-item-button', function() {
|
build_table.on('click', '.new-item-button', function() {
|
||||||
var button = $(this);
|
var button = $(this);
|
||||||
|
|
||||||
launchModalForm(button.attr('url'), {
|
launchModalForm(button.attr('url'), {
|
||||||
@ -109,7 +108,7 @@ function makeAllocationTable(options) {
|
|||||||
return table;
|
return table;
|
||||||
}
|
}
|
||||||
|
|
||||||
function fillAllocationTable(table, index, parent_row, parent_table, options) {
|
function fillAllocationTable(table, index, parent_row, options) {
|
||||||
/* Load data into an allocation table,
|
/* Load data into an allocation table,
|
||||||
* and update the total stock allocation count in the parent row.
|
* and update the total stock allocation count in the parent row.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user